MCPcopy Create free account
hub / github.com/alexankitty/Myrient-Search-Engine / updateKws

Function updateKws

server.js:135–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135async function updateKws() {
136 if (updatingFiles) return;
137 if (process.env.DB_KEYWORD_OPTIMIZER !== "1") return;
138 if (
139 !(await File.count({ where: { filenamekws: { [Op.ne]: null } } })) ||
140 process.env.FORCE_DB_OPTIMIZE == "1"
141 ) {
142 await optimizeDatabaseKws();
143 }
144}
145
146function buildOptions(page, options) {
147 return { page: page, ...options, ...defaultOptions };

Callers 1

server.jsFile · 0.85

Calls 1

optimizeDatabaseKwsFunction · 0.90

Tested by

no test coverage detected