Fixed regression

This commit is contained in:
Steffen Strätz 2014-09-17 21:11:59 +02:00
parent ebfd372899
commit 1540e4e529
2 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,4 @@
PostSchema = new SimpleSchema({
postSchemaObject = {
_id: {
type: String,
optional: true
@ -86,7 +86,7 @@ PostSchema = new SimpleSchema({
type: String, // XXX
optional: true
}
});
};
// add any extra properties to postSchemaObject (provided by packages for example)
_.each(addToPostSchema, function(item){
@ -94,6 +94,8 @@ _.each(addToPostSchema, function(item){
});
Posts = new Meteor.Collection("posts");
PostSchema = new SimpleSchema(postSchemaObject);
Posts.attachSchema(PostSchema);
STATUS_PENDING=1;

View file

@ -1,4 +1,4 @@
SettingSchema = new SimpleSchema({
settingsSchemaObject = {
title: {
type: String,
label: "Title",
@ -160,7 +160,7 @@ SettingSchema = new SimpleSchema({
type: String,
optional: true
}
});
};
// add any extra properties to settingsSchemaObject (provided by packages for example)
_.each(addToSettingsSchema, function(item){
@ -168,6 +168,7 @@ _.each(addToSettingsSchema, function(item){
});
Settings = new Meteor.Collection("settings");
SettingSchema = new SimpleSchema(settingsSchemaObject);
Settings.attachSchema(SettingsSchema);
Settings.allow({