Move every Attachments.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)

This commit is contained in:
Martin Filser 2023-02-26 11:24:32 +01:00
parent f83ee124d0
commit 14ac099e87
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ BlazeComponent.extendComponent({
BlazeComponent.extendComponent({
getBoardsWithAttachments() {
this.attachments = Attachments.find().get();
this.attachments = ReactiveCache.getAttachments();
this.attachmentsByBoardId = _.chain(this.attachments)
.groupBy(fileObj => fileObj.meta.boardId)
.value();