fix: database-sync should update scores on the edited charts

This commit is contained in:
zkldi
2022-12-16 09:50:34 +00:00
parent a98978c134
commit 0e5ae92ff4
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ async function GenericUpsert<T extends Record<string, any>>(
},
});
changedFields.push(field);
changedFields.push(document[field]);
}
// free some memory.
+1
View File
@@ -24,6 +24,7 @@ export async function EfficientDBIterate<T, R>(
});
if (docs.length === 0) {
logger.info(`Ended documents at ${i}.`);
break;
}