mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 09:20:12 +01: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:
|
// We use activities fields at two different places:
|
||||||
// 1. The board sidebar
|
// 1. The board sidebar
|
||||||
// 2. The card activity tab
|
// 2. The card activity tab
|
||||||
|
|
@ -17,7 +19,7 @@ Meteor.publish('activities', (kind, id, limit, hideSystem) => {
|
||||||
// Get linkedBoard
|
// Get linkedBoard
|
||||||
let linkedElmtId = [id];
|
let linkedElmtId = [id];
|
||||||
if (kind == 'board') {
|
if (kind == 'board') {
|
||||||
Cards.find({
|
ReactiveCache.getCards({
|
||||||
"type": "cardType-linkedBoard",
|
"type": "cardType-linkedBoard",
|
||||||
"boardId": id}
|
"boardId": id}
|
||||||
).forEach(card => {
|
).forEach(card => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue