mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Fixed regression
This commit is contained in:
parent
ebfd372899
commit
1540e4e529
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue