diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/cards.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/cards.js b/models/cards.js index 1e001501..8cf0ef65 100644 --- a/models/cards.js +++ b/models/cards.js @@ -221,15 +221,15 @@ Cards.helpers({ }, subtasks() { - return Subtasks.find({cardId: this._id}, {sort: { sort: 1 } }); + return Cards.find({parentId: this._id}, {sort: { sort: 1 } }); }, subtasksCount() { - return Subtasks.find({cardId: this._id}).count(); + return Cards.find({parentId: this._id}).count(); }, subtasksFinishedCount() { - return Subtasks.find({cardId: this._id, isFinished: true}).count(); + return Cards.find({parentId: this._id, archived: true}).count(); }, subtasksFinished() { |