Browse Source

Merge remote-tracking branch 'andresmanelli/edge' into edge

Lauri Ojansivu 6 years ago
parent
commit
5a9837f676
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/cards.js

+ 2 - 2
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,