mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01: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 paramListId = req.params.listId;
|
||||||
const paramCardId = req.params.cardId;
|
const paramCardId = req.params.cardId;
|
||||||
|
|
||||||
|
const card = Cards.findOne({
|
||||||
|
_id: paramCardId,
|
||||||
|
});
|
||||||
Cards.direct.remove({
|
Cards.direct.remove({
|
||||||
_id: paramCardId,
|
_id: paramCardId,
|
||||||
listId: paramListId,
|
listId: paramListId,
|
||||||
boardId: paramBoardId,
|
boardId: paramBoardId,
|
||||||
});
|
});
|
||||||
const card = Cards.find({
|
|
||||||
_id: paramCardId,
|
|
||||||
});
|
|
||||||
cardRemover(req.body.authorId, card);
|
cardRemover(req.body.authorId, card);
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue