mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
api: add the ability to change the Swimlane of a card
This commit is contained in:
parent
f61942e5cb
commit
dfdba25ea0
1 changed files with 5 additions and 0 deletions
|
|
@ -1519,6 +1519,11 @@ if (Meteor.isServer) {
|
||||||
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
|
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
|
||||||
{$set: {members: newmembers}});
|
{$set: {members: newmembers}});
|
||||||
}
|
}
|
||||||
|
if (req.body.hasOwnProperty('swimlaneId')) {
|
||||||
|
const newParamSwimlaneId = req.body.swimlaneId;
|
||||||
|
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
|
||||||
|
{$set: {swimlaneId: newParamSwimlaneId}});
|
||||||
|
}
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
data: {
|
data: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue