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

@ -1,5 +1,5 @@
import Avatars from '../../models/avatars';
Meteor.publish('my-avatars', function() {
const ret = Avatars.find({ userId: this.userId }).cursor;
const ret = ReactiveCache.getAvatars({ userId: this.userId }, {}, true).cursor;
return ret;
});