From 77754cf32f28498e550a46325d90eb41f08f8552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Tue, 5 Mar 2019 22:48:29 +0100 Subject: Fix card deletion from archive --- models/cards.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models') 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, -- cgit v1.2.3-1-g7c22