Added schema defaults to all schemas to prevent strings from being trimmed
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Blacklist = new Mongo.Collection("blacklist");
|
||||
|
||||
Schemas.Blacklist = new SimpleSchema({
|
||||
Schemas.Blacklist = schema({
|
||||
userId: {
|
||||
type: String,
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
ChangeLogs = new Mongo.Collection("changeLogs");
|
||||
|
||||
Schemas.ChangeLog = new SimpleSchema({
|
||||
Schemas.ChangeLog = schema({
|
||||
version: {
|
||||
type: String,
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Reports = new Mongo.Collection("reports");
|
||||
|
||||
Schemas.Report = new SimpleSchema({
|
||||
Schemas.Report = schema({
|
||||
owner: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
|
||||
Reference in New Issue
Block a user