|
@@ -7,13 +7,7 @@ import { formatFleURL } from 'meteor/ostrio:files/lib';
|
|
|
|
|
|
Template.userAvatar.helpers({
|
|
|
userData() {
|
|
|
- // We need to handle a special case for the search results provided by the
|
|
|
- // `matteodem:easy-search` package. Since these results gets published in a
|
|
|
- // separate collection, and not in the standard Meteor.Users collection as
|
|
|
- // expected, we use a component parameter ("property") to distinguish the
|
|
|
- // two cases.
|
|
|
- const userCollection = this.esSearch ? ESSearchResults : Users;
|
|
|
- return userCollection.findOne(this.userId, {
|
|
|
+ return Users.findOne(this.userId, {
|
|
|
fields: {
|
|
|
profile: 1,
|
|
|
username: 1,
|
|
@@ -95,8 +89,7 @@ BlazeComponent.extendComponent({
|
|
|
|
|
|
Template.boardOrgRow.helpers({
|
|
|
orgData() {
|
|
|
- const orgCollection = this.esSearch ? ESSearchResults : Org;
|
|
|
- return orgCollection.findOne(this.orgId);
|
|
|
+ return Org.findOne(this.orgId);
|
|
|
},
|
|
|
currentUser(){
|
|
|
return Meteor.user();
|
|
@@ -158,8 +151,7 @@ BlazeComponent.extendComponent({
|
|
|
|
|
|
Template.boardTeamRow.helpers({
|
|
|
teamData() {
|
|
|
- const teamCollection = this.esSearch ? ESSearchResults : Team;
|
|
|
- return teamCollection.findOne(this.teamId);
|
|
|
+ return Team.findOne(this.teamId);
|
|
|
},
|
|
|
currentUser(){
|
|
|
return Meteor.user();
|