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

@@ -67,6 +67,7 @@ function getCreature(creatureId) {
const creature = Creatures.findOne(creatureId, {
denormalizedStats: 1,
variables: 1,
dirty: 1,
});
console.timeEnd(`Cache miss on Creature: ${creatureId}`);
return creature;