Procházet zdrojové kódy

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

Martin Filser před 2 roky
rodič
revize
ad9daba60d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,