Moved the model into the imports directory

This commit is contained in:
Stefan Zermatten
2018-10-12 09:01:23 +02:00
parent b2eed9a672
commit ca8223ccad
37 changed files with 3 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ Schemas.Creature = new SimpleSchema({
xp: {type: Number, defaultValue: 0},
weightCarried: {type: Number, defaultValue: 0},
level: {type: Number, defaultValue: 0},
type: {type: String, defaultValue: "pc", allowedValues: ["pc", "npc", "monster"]},
//permissions
party: {type: String, regEx: SimpleSchema.RegEx.Id, optional: true},
@@ -71,9 +72,9 @@ Creatures.calculate = {
},
};
const insertCreatureMethod = new ValidatedMethod({
const insertCharacter = new ValidatedMethod({
name: "Creatures.methods.insert", // DDP method name
name: "Creatures.methods.insertCharacter", // DDP method name
validate: new SimpleSchema({
name: {