diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-04-23 19:30:23 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-04-23 19:30:23 +0300 |
commit | 11e8a9d5c421609e9ec6bc30ae1c9fe48d6460a1 (patch) | |
tree | a054ec502113381363254b8d386de05bfd1626e4 /models/cards.js | |
parent | 6933424fca56fc84b0060ff97b97303d36ab5fb0 (diff) | |
parent | 8137f2692fe3e1d9f1c0a9b635ef15cdf36728f7 (diff) | |
download | wekan-11e8a9d5c421609e9ec6bc30ae1c9fe48d6460a1.tar.gz wekan-11e8a9d5c421609e9ec6bc30ae1c9fe48d6460a1.tar.bz2 wekan-11e8a9d5c421609e9ec6bc30ae1c9fe48d6460a1.zip |
Merge branch 'Akuket-feature/removeArchived' into edge
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/cards.js b/models/cards.js index 7430ae52..d5a59377 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1518,7 +1518,7 @@ function cardCreation(userId, doc) { } function cardRemover(userId, doc) { - Activities.remove({ + ChecklistItems.remove({ cardId: doc._id, }); Checklists.remove({ @@ -1583,7 +1583,7 @@ if (Meteor.isServer) { // Remove all activities associated with a card if we remove the card // Remove also card_comments / checklists / attachments - Cards.after.remove((userId, doc) => { + Cards.before.remove((userId, doc) => { cardRemover(userId, doc); }); } |