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