Updated simpl-schema and collection2, started untangling the mess that made
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
Notes = new Mongo.Collection("notes");
|
||||
import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
|
||||
|
||||
Schemas.Note = new SimpleSchema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
|
||||
name: {type: String, optional: true, trim: false},
|
||||
description: {type: String, optional: true, trim: false},
|
||||
color: {
|
||||
type: String,
|
||||
allowedValues:_.pluck(colorOptions, "key"),
|
||||
defaultValue: "q",
|
||||
},
|
||||
});
|
||||
|
||||
Notes.attachSchema(Schemas.Note);
|
||||
Attributes.attachSchema(ColorSchema);
|
||||
|
||||
Notes.attachBehaviour("softRemovable");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user