Purged all references to the schema factory, use SCHEMA_OPTIONS constant instead

This commit is contained in:
Stefan Zermatten
2019-07-30 15:21:30 +02:00
parent 2385b69720
commit 4b7ff2146f
20 changed files with 23 additions and 57 deletions

View File

@@ -1,7 +1,6 @@
import SimpleSchema from 'simpl-schema';
import schema from '/imports/api/schema.js';
const userSchema = schema({
const userSchema = new SimpleSchema({
username: {
type: String,
optional: true,
@@ -95,7 +94,7 @@ Meteor.users.setDarkMode = new ValidatedMethod({
Meteor.users.sendVerificationEmail = new ValidatedMethod({
name: 'Users.methods.sendVerificationEmail',
validate: schema({
validate: new SimpleSchema({
userId:{
type: String,
optional: true,