summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-04-23 19:30:23 +0300
committerLauri Ojansivu <x@xet7.org>2019-04-23 19:30:23 +0300
commit11e8a9d5c421609e9ec6bc30ae1c9fe48d6460a1 (patch)
treea054ec502113381363254b8d386de05bfd1626e4 /models/cards.js
parent6933424fca56fc84b0060ff97b97303d36ab5fb0 (diff)
parent8137f2692fe3e1d9f1c0a9b635ef15cdf36728f7 (diff)
downloadwekan-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.js4
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);
});
}