Purged all references to the schema factory, use SCHEMA_OPTIONS constant instead
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user