Move every Cards.findOne(idOrFirstObjectSelector, options) to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 12:38:37 +01:00
parent 48ba81eb3d
commit 06e374f0ff
6 changed files with 11 additions and 11 deletions

View file

@ -805,7 +805,7 @@ Boards.helpers({
},
hasOvertimeCards() {
const card = Cards.findOne({
const card = ReactiveCache.getCard({
isOvertime: true,
boardId: this._id,
archived: false,
@ -814,7 +814,7 @@ Boards.helpers({
},
hasSpentTimeCards() {
const card = Cards.findOne({
const card = ReactiveCache.getCard({
spentTime: { $gt: 0 },
boardId: this._id,
archived: false,