summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/cards.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/cards.js b/models/cards.js
index f454c72c..633a3888 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -2398,14 +2398,14 @@ if (Meteor.isServer) {
const paramListId = req.params.listId;
const paramCardId = req.params.cardId;
+ const card = Cards.findOne({
+ _id: paramCardId,
+ });
Cards.direct.remove({
_id: paramCardId,
listId: paramListId,
boardId: paramBoardId,
});
- const card = Cards.find({
- _id: paramCardId,
- });
cardRemover(req.body.authorId, card);
JsonRoutes.sendResult(res, {
code: 200,