Unrelated: fix isInitial in sync database bms

This commit is contained in:
zkldi
2021-12-01 22:37:32 +00:00
parent 6a7eb894f7
commit dd667f0d7a
@@ -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);