Iterated on Tabletop UX
This commit is contained in:
@@ -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 }
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user