Fix incorrect varname

This commit is contained in:
zkldi
2021-11-06 00:35:59 +00:00
parent 33a91b007f
commit cd560d16f0
@@ -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: {