summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2019-03-05 22:48:29 +0100
committerAndrés Manelli <andresmanelli@gmail.com>2019-03-05 22:48:29 +0100
commit77754cf32f28498e550a46325d90eb41f08f8552 (patch)
treeb74534e66a496ab9e95417d1fb12130476bbb548 /models
parent1bef3a3f8ff4eac43bf97cc8b86d85e618b0e2ef (diff)
downloadwekan-77754cf32f28498e550a46325d90eb41f08f8552.tar.gz
wekan-77754cf32f28498e550a46325d90eb41f08f8552.tar.bz2
wekan-77754cf32f28498e550a46325d90eb41f08f8552.zip
Fix card deletion from archive
Diffstat (limited to 'models')
-rw-r--r--models/cards.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/cards.js b/models/cards.js
index cf64cd9b..43d2bbfe 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1421,8 +1421,8 @@ function cardRemover(userId, doc) {
Checklists.remove({
cardId: doc._id,
});
- Subtasks.remove({
- cardId: doc._id,
+ Cards.remove({
+ parentId: doc._id,
});
CardComments.remove({
cardId: doc._id,