mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Switch from subtasks to cards in model
This commit is contained in:
parent
fd465fbb60
commit
adb7f5b2ca
1 changed files with 3 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue