Browse Source

Move every Users.findOne(idOrFirstObjectSelector, options) to the ReactiveCache

Martin Filser 2 years ago
parent
commit
ad9daba60d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/components/users/userAvatar.js

+ 1 - 1
client/components/users/userAvatar.js

@@ -7,7 +7,7 @@ import Team from '/models/team';
 
 Template.userAvatar.helpers({
   userData() {
-    return Users.findOne(this.userId, {
+    return ReactiveCache.getUser(this.userId, {
       fields: {
         profile: 1,
         username: 1,