mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every Avatars.find(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
36db6c6e2d
commit
538e197147
3 changed files with 59 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue