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,4 +1,4 @@
import schema from '/imports/api/schema.js';
import SimpleSchema from 'simpl-schema';
import SharingSchema from '/imports/api/sharing/SharingSchema.js';
import simpleSchemaMixin from '/imports/api/creature/mixins/simpleSchemaMixin.js';
@@ -13,7 +13,7 @@ import simpleSchemaMixin from '/imports/api/creature/mixins/simpleSchemaMixin.js
*/
let Libraries = new Mongo.Collection('libraries');
let LibrarySchema = schema({
let LibrarySchema = new SimpleSchema({
name: {
type: String,
},

View File

@@ -1,5 +1,4 @@
import SimpleSchema from 'simpl-schema';
import schema from '/imports/api/schema.js';
import ChildSchema from '/imports/api/parenting/ChildSchema.js';
import librarySchemas from '/imports/api/library/librarySchemas.js';
import Libraries from '/imports/api/library/Libraries.js';
@@ -8,7 +7,7 @@ import getModifierFields from '/imports/api/getModifierFields.js';
let LibraryNodes = new Mongo.Collection('libraryNodes');
let LibraryNodeSchema = schema({
let LibraryNodeSchema = new SimpleSchema({
libraryNodeType: {
type: String,
allowedValues: Object.keys(librarySchemas),