Made names optional for all collections

closes #92
This commit is contained in:
Stefan Zermatten
2017-07-13 10:39:43 +02:00
parent 1e67afbe6f
commit 99c72d1e10
11 changed files with 12 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ Notes = new Mongo.Collection("notes");
Schemas.Note = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
name: {type: String, trim: false},
name: {type: String, optional: true, trim: false},
description: {type: String, optional: true, trim: false},
color: {
type: String,