mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
REST API: fix deletion of a single board card (closes wekan#2624)
This commit is contained in:
parent
32ce2b51d8
commit
b7492e4a11
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue