Fixed some fields not storing strings when compiling calculations

This commit is contained in:
Stefan Zermatten
2021-02-02 15:07:31 +02:00
parent 8b8f9bea6f
commit a6df4df534
3 changed files with 8 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ const DamageSchema = new SimpleSchema({
const ComputedOnlyDamageSchema = new SimpleSchema({
amountResult: {
type: SimpleSchema.Integer,
type: SimpleSchema.oneOf(String, SimpleSchema.Integer),
optional: true,
},
amountErrors: {