diff options
author | guillaume <guillaume.cassou@orange.fr> | 2019-04-23 18:00:09 +0200 |
---|---|---|
committer | guillaume <guillaume.cassou@orange.fr> | 2019-04-23 18:00:09 +0200 |
commit | 8137f2692fe3e1d9f1c0a9b635ef15cdf36728f7 (patch) | |
tree | a054ec502113381363254b8d386de05bfd1626e4 /models/cards.js | |
parent | 6933424fca56fc84b0060ff97b97303d36ab5fb0 (diff) | |
download | wekan-8137f2692fe3e1d9f1c0a9b635ef15cdf36728f7.tar.gz wekan-8137f2692fe3e1d9f1c0a9b635ef15cdf36728f7.tar.bz2 wekan-8137f2692fe3e1d9f1c0a9b635ef15cdf36728f7.zip |
remove feature
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); }); } |