Began moving character sheet and related menus to Polymer 1

This commit is contained in:
Stefan Zermatten
2017-01-18 15:04:09 +02:00
parent 817020bea8
commit 137a94f251
13 changed files with 142 additions and 107 deletions

View File

@@ -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 [];

View 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}}
);
});