Iterated on Tabletop UX

This commit is contained in:
ThaumRystra
2025-01-23 23:22:16 +02:00
parent a09a32eb9a
commit 5b68190570
19 changed files with 266 additions and 156 deletions

View File

@@ -1,4 +1,5 @@
import Creatures from '/imports/api/creature/creatures/Creatures';
import VERSION from '/imports/constants/VERSION';
export default function writeErrorsAndPropCount(creatureId, errors = [], propCount) {
if (errors.length) {
@@ -7,6 +8,7 @@ export default function writeErrorsAndPropCount(creatureId, errors = [], propCou
computeErrors: errors,
propCount,
lastComputedAt: new Date(),
computeVersion: VERSION,
}
});
} else {
@@ -14,6 +16,7 @@ export default function writeErrorsAndPropCount(creatureId, errors = [], propCou
$set: {
propCount,
lastComputedAt: new Date(),
computeVersion: VERSION,
}, $unset: { computeErrors: 1 }
});
}