Fixed parties -> creatureFolders publications and ui
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
|
||||
let CreatureFolders = new Mongo.Collection('parties');
|
||||
let CreatureFolders = new Mongo.Collection('creatureFolders');
|
||||
|
||||
let creatureFolderSchema = new SimpleSchema({
|
||||
name: {
|
||||
@@ -25,6 +25,10 @@ let creatureFolderSchema = new SimpleSchema({
|
||||
type: Boolean,
|
||||
defaultValue: true,
|
||||
},
|
||||
order: {
|
||||
type: Number,
|
||||
defaultValue: 0,
|
||||
},
|
||||
});
|
||||
|
||||
CreatureFolders.attachSchema(creatureFolderSchema);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Creatures from '/imports/api/creature/Creatures.js';
|
||||
import Parties from '/imports/api/creature/creatureFolders/CreatureFolders.js';
|
||||
import CreatureFolders from '/imports/api/creature/creatureFolders/CreatureFolders.js';
|
||||
|
||||
Meteor.publish('characterList', function(){
|
||||
this.autorun(function (){
|
||||
@@ -36,7 +36,7 @@ Meteor.publish('characterList', function(){
|
||||
}
|
||||
}
|
||||
),
|
||||
Parties.find({owner: userId}),
|
||||
CreatureFolders.find({owner: userId}),
|
||||
];
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user