Move every Cards.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)

This commit is contained in:
Martin Filser 2023-02-14 18:52:36 +01:00
parent c0ecfb87b0
commit c2139662cd

View file

@ -1,3 +1,5 @@
import { ReactiveCache } from '/imports/reactiveCache';
// We use activities fields at two different places:
// 1. The board sidebar
// 2. The card activity tab
@ -17,7 +19,7 @@ Meteor.publish('activities', (kind, id, limit, hideSystem) => {
// Get linkedBoard
let linkedElmtId = [id];
if (kind == 'board') {
Cards.find({
ReactiveCache.getCards({
"type": "cardType-linkedBoard",
"boardId": id}
).forEach(card => {