From dd667f0d7a37ebcc6cdc9ee8d619e307c5dca9a8 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 1 Dec 2021 22:37:32 +0000 Subject: [PATCH] Unrelated: fix isInitial in sync database bms --- server/scripts/sync-database/sync-database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/sync-database/sync-database.ts b/server/scripts/sync-database/sync-database.ts index 321f1ed43..084d98ffa 100644 --- a/server/scripts/sync-database/sync-database.ts +++ b/server/scripts/sync-database/sync-database.ts @@ -112,7 +112,7 @@ const syncInstructions: SyncInstructions[] = [ // Since the USC and BMS databases are managed Bokutachi-side, we // shouldn't be honoring any sort of updates from tachi-database-seeds // aside from an initial one. - const isInitial = await collection.findOne(); + const isInitial = (await collection.findOne()) === null; if (isInitial) { const r = await GenericUpsert(charts, collection, "chartID", logger, true);