Added schema defaults to all schemas to prevent strings from being trimmed

This commit is contained in:
Stefan Zermatten
2019-02-06 17:32:08 +02:00
parent bf2e9439cf
commit b67926e0fc
38 changed files with 100 additions and 50 deletions

View File

@@ -1,11 +1,11 @@
Schemas.UserProfile = new SimpleSchema({
Schemas.UserProfile = schema({
username: {
type: String,
optional: true,
},
});
Schemas.User = new SimpleSchema({
Schemas.User = schema({
username: {
type: String,
optional: true,
@@ -85,7 +85,7 @@ Meteor.users.gnerateApiKey = new ValidatedMethod({
Meteor.users.sendVerificationEmail = new ValidatedMethod({
name: "Users.methods.sendVerificationEmail",
validate: new SimpleSchema({
validate: schema({
userId:{
type: String,
optional: true,