Add initfolderchartlookup handling

This commit is contained in:
zkldi
2021-11-05 00:48:30 +00:00
parent 6e6ecd29af
commit f482f31133
2 changed files with 10 additions and 0 deletions
@@ -12,6 +12,7 @@ import { ICollection } from "monk";
import os from "os";
import path from "path";
import { ChartDocument, FolderDocument, SongDocument, TableDocument } from "tachi-common";
import { InitaliseFolderChartLookup } from "utils/folder";
interface SyncInstructions {
pattern: RegExp;
@@ -147,6 +148,7 @@ const syncInstructions: SyncInstructions[] = [
if (bwriteOps.length) {
await collection.bulkWrite(bwriteOps);
await InitaliseFolderChartLookup();
}
},
},