Purged all references to the schema factory, use SCHEMA_OPTIONS constant instead
This commit is contained in:
@@ -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 propertySchemas from '/imports/api/properties/propertySchemas.js';
|
||||
import Libraries from '/imports/api/library/Libraries.js';
|
||||
@@ -8,7 +7,7 @@ import getModifierFields from '/imports/api/getModifierFields.js';
|
||||
|
||||
let CreatureProperties = new Mongo.Collection('creatureProperties');
|
||||
|
||||
let CreaturePropertySchema = schema({
|
||||
let CreaturePropertySchema = new SimpleSchema({
|
||||
creaturePropertyType: {
|
||||
type: String,
|
||||
allowedValues: Object.keys(propertySchemas),
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import schema from '/imports/api/schema.js';
|
||||
import deathSaveSchema from "/imports/api/creature/subSchemas/DeathSavesSchema.js"
|
||||
import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
|
||||
import SharingSchema from '/imports/api/sharing/SharingSchema.js';
|
||||
@@ -29,7 +28,7 @@ let CreatureSettingsSchema = new SimpleSchema({
|
||||
},
|
||||
});
|
||||
|
||||
let CreatureSchema = schema({
|
||||
let CreatureSchema = new SimpleSchema({
|
||||
// Strings
|
||||
name: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user