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,6 +1,8 @@
import SimpleSchema from 'simpl-schema';
Blacklist = new Mongo.Collection("blacklist");
Schemas.Blacklist = schema({
Schemas.Blacklist = new SimpleSchema({
userId: {
type: String,
},

View File

@@ -1,6 +1,8 @@
import SimpleSchema from 'simpl-schema';
ChangeLogs = new Mongo.Collection("changeLogs");
Schemas.ChangeLog = schema({
Schemas.ChangeLog = new SimpleSchema({
version: {
type: String,
},

View File

@@ -1,6 +1,8 @@
import SimpleSchema from 'simpl-schema';
Reports = new Mongo.Collection("reports");
Schemas.Report = schema({
Schemas.Report = new SimpleSchema({
owner: {
type: String,
regEx: SimpleSchema.RegEx.Id,