mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Move every Cards.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
48ba81eb3d
commit
06e374f0ff
6 changed files with 11 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue