From a439232f44d58ff693b101fd93478de3bbe3601b Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Mon, 4 Apr 2022 23:52:41 +0100 Subject: [PATCH] Fix bug where folders, tables and bms-courses didn't sync --- server/src/scripts/sync-database.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/scripts/sync-database.ts b/server/src/scripts/sync-database.ts index d2a206adf..74f47741b 100644 --- a/server/src/scripts/sync-database.ts +++ b/server/src/scripts/sync-database.ts @@ -196,7 +196,7 @@ const syncInstructions: SyncInstructions[] = [ }, }, { - pattern: /^folders$/u, + pattern: /^folders/u, handler: async ( folders: FolderDocument[], collection: ICollection, @@ -210,12 +210,12 @@ const syncInstructions: SyncInstructions[] = [ }, }, { - pattern: /^tables$/u, + pattern: /^tables/u, handler: (tables: TableDocument[], collection: ICollection, logger) => GenericUpsert(tables, collection, "tableID", logger, true), }, { - pattern: /^bms-course-lookup$/u, + pattern: /^bms-course-lookup/u, handler: ( bmsCourseDocuments: BMSCourseDocument[], collection: ICollection,