Added schema defaults to all schemas to prevent strings from being trimmed
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import schema from '/imports/api/schema.js';
|
||||
import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
|
||||
|
||||
let Notes = new Mongo.Collection("notes");
|
||||
|
||||
noteSchema = new SimpleSchema({
|
||||
noteSchema = schema({
|
||||
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
|
||||
name: {type: String, optional: true, trim: false},
|
||||
description: {type: String, optional: true, trim: false},
|
||||
|
||||
Reference in New Issue
Block a user