mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04: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