Progress on dependency updates

This commit is contained in:
Stefan Zermatten
2022-05-09 16:32:15 +02:00
parent caf50d1578
commit 23fa6fe634
6 changed files with 159 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ export default function writeAlteredProperties(computation){
function addChangedKeysToOp(op, keys, original, changed) {
// Loop through all keys that can be changed by computation
// and compile an operation that sets all those keys
for (let key of keys){
for (let key of keys) {
if (!EJSON.equals(original[key], changed[key])){
if (!op) op = newOperation(original._id, changed.type);
let value = changed[key];