reindex auto on start

This commit is contained in:
2024-08-07 08:02:47 +02:00
parent 57db217ee4
commit 53fad87b25
2 changed files with 34 additions and 26 deletions

View File

@@ -900,7 +900,7 @@ Odmdb.runidx = (objectPathname, schema) => {
});
Object.keys(ventil).forEach((n) => {
//if (log) console.log(currentmod,`${objectPathname}/idx/${ventil[n].name}.json`)
fs.outputJSON(
fs.outputJSONSync(
`${objectPathname}/idx/${ventil[n].name}.json`,
ventil[n].data
);