summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/cards.js b/models/cards.js
index 4ec3ea7c..2563fdf8 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -332,19 +332,19 @@ Cards.helpers({
});
Cards.mutations({
- applyToKids(funct) {
+ applyToChildren(funct) {
Cards.find({ parentId: this._id }).forEach((card) => {
funct(card);
});
},
archive() {
- this.applyToKids((card) => { return card.archive(); });
+ this.applyToChildren((card) => { return card.archive(); });
return {$set: {archived: true}};
},
restore() {
- this.applyToKids((card) => { return card.restore(); });
+ this.applyToChildren((card) => { return card.restore(); });
return {$set: {archived: false}};
},