diff options
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); }); } |