mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Move every Cards.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
c0ecfb87b0
commit
c2139662cd
1 changed files with 3 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue