Fixed some bugs with characters not recomputing

TODO: remove .variables cache from creature document, it's not viable
This commit is contained in:
Stefan Zermatten
2022-06-23 08:39:48 +02:00
parent b484a27637
commit b2f89eceee
6 changed files with 17 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ const organizeDoc = new ValidatedMethod({
Creatures.update({
_id: { $in: creaturesToRecompute }
}, {
dirty: true
$set: { dirty: true },
});
}
},
@@ -91,7 +91,7 @@ const reorderDoc = new ValidatedMethod({
Creatures.update({
_id: { $in: ancestors }
}, {
dirty: true
$set: { dirty: true },
});
}
},