Fixed compile errors

This commit is contained in:
Stefan Zermatten
2018-09-25 16:04:30 +02:00
parent 005433268d
commit cf33bfcce1
3 changed files with 5 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ Schemas.Attribute = new SimpleSchema({
], ],
}, },
baseValue: { baseValue: {
Number, type: Number,
decimal: true, decimal: true,
optional: true, optional: true,
}, },
@@ -55,7 +55,7 @@ Schemas.Attribute = new SimpleSchema({
decimal: { decimal: {
type: Boolean, type: Boolean,
optional: true, optional: true,
} },
parent: { parent: {
type: Schemas.Parent type: Schemas.Parent
}, },

View File

@@ -557,7 +557,7 @@ const recomputeCharacterXP = new ValidatedMethod({
}, },
}); });
const recomputeCharacterWeightCarried = new ValidatedMethod){ const recomputeCharacterWeightCarried = new ValidatedMethod({
name: "Character.methods.recomputeCharacterWeightCarried", name: "Character.methods.recomputeCharacterWeightCarried",
validate: new SimpleSchema({ validate: new SimpleSchema({
@@ -604,4 +604,4 @@ const recomputeCharacterWeightCarried = new ValidatedMethod){
Characters.update(charId, {$set: {weightCarried}}) Characters.update(charId, {$set: {weightCarried}})
return weightCarried; return weightCarried;
} }
} });

View File

@@ -146,7 +146,7 @@ getDefaultCharacterDocs = function(charId){
_id: Random.id, _id: Random.id,
charId, charId,
name: dm.name, name: dm.name,
variableName = dm.variableName, variableName: dm.variableName,
parent: _.clone(baseParent), parent: _.clone(baseParent),
}); });
} }