From f274b3c26be60813829dcf2b0e68a8dd876ff614 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 2 Feb 2021 18:36:21 +0200 Subject: [PATCH] Try fix removed nonexistent document error. Thanks to xet7 ! Related #3203, related #3252, related #2230 related #1629 --- models/cardComments.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/models/cardComments.js b/models/cardComments.js index 88f384163..64631c15e 100644 --- a/models/cardComments.js +++ b/models/cardComments.js @@ -168,9 +168,6 @@ if (Meteor.isServer) { listId: card.listId, swimlaneId: card.swimlaneId, }); - }); - - CardComments.after.remove((userId, doc) => { const activity = Activities.findOne({ commentId: doc._id }); if (activity) { Activities.remove(activity._id);