Began moving character sheet and related menus to Polymer 1
This commit is contained in:
@@ -27,10 +27,6 @@ Meteor.publish("singleCharacter", function(characterId){
|
||||
SpellLists.find ({charId: characterId}, {removed: true}),
|
||||
TemporaryHitPoints.find({charId: characterId}, {removed: true}),
|
||||
Proficiencies.find ({charId: characterId}, {removed: true}),
|
||||
Meteor.users.find (
|
||||
{_id: {$in: _.union(char.readers, char.writers)}},
|
||||
{fields: {username: 1}}
|
||||
),
|
||||
];
|
||||
} else {
|
||||
return [];
|
||||
|
||||
7
rpg-docs/server/publications/users.js
Normal file
7
rpg-docs/server/publications/users.js
Normal file
@@ -0,0 +1,7 @@
|
||||
Meteor.publish("userNames", function(ids){
|
||||
if (!this.userId || !ids) return [];
|
||||
return Meteor.users.find(
|
||||
{_id: {$in: ids}},
|
||||
{fields: {username: 1}}
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user