From cd560d16f029c1663a9030195c8d33f0f99c87bb Mon Sep 17 00:00:00 2001 From: zkldi Date: Sat, 6 Nov 2021 00:35:59 +0000 Subject: [PATCH] Fix incorrect varname --- server/scripts/sync-database/sync-database.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/scripts/sync-database/sync-database.ts b/server/scripts/sync-database/sync-database.ts index c8b32b836..385b78350 100644 --- a/server/scripts/sync-database/sync-database.ts +++ b/server/scripts/sync-database/sync-database.ts @@ -132,7 +132,7 @@ const syncInstructions: SyncInstructions[] = [ // @ts-expect-error faulty monk types insertOne: { document: folder }, }); - } else if (fjsh.hash(document, "sha256") !== fjsh.hash(exists, "sha256")) { + } else if (fjsh.hash(folder, "sha256") !== fjsh.hash(exists, "sha256")) { bwriteOps.push({ updateOne: { filter: { @@ -175,7 +175,7 @@ const syncInstructions: SyncInstructions[] = [ // @ts-expect-error faulty monk types insertOne: { document: table }, }); - } else if (fjsh.hash(document, "sha256") !== fjsh.hash(exists, "sha256")) { + } else if (fjsh.hash(table, "sha256") !== fjsh.hash(exists, "sha256")) { bwriteOps.push({ updateOne: { filter: {