Continued migrating to Simpl-Schema and imports

This commit is contained in:
Stefan Zermatten
2018-10-19 14:01:23 +02:00
parent 989706483a
commit 7cda854d22
31 changed files with 391 additions and 710 deletions

View File

@@ -1,3 +1,4 @@
import SimpleSchema from 'simpl-schema';
import {makeChild} from "/imports/api/parenting.js";
Effects = new Mongo.Collection("effects");
@@ -35,7 +36,6 @@ effectSchema = new SimpleSchema({
},
value: {
type: Number,
decimal: true,
optional: true,
},
calculation: {
@@ -56,7 +56,7 @@ effectSchema = new SimpleSchema({
Effects.attachSchema(effectSchema);
Effects.attachBehaviour("softRemovable");
//Effects.attachBehaviour("softRemovable");
makeChild(Effects, ["enabled"]); //children of lots of things
export default Effects;