Move every Avatars.find(idOrFirstObjectSelector, options) to the ReactiveCache

This commit is contained in:
Martin Filser 2023-03-12 20:07:53 +01:00
parent 36db6c6e2d
commit 538e197147
3 changed files with 59 additions and 2 deletions

View file

@ -172,7 +172,8 @@ BlazeComponent.extendComponent({
},
uploadedAvatars() {
return Avatars.find({ userId: Meteor.userId() }).each();
const ret = ReactiveCache.getAvatars({ userId: Meteor.userId() }, {}, true).each();
return ret;
},
isSelected() {