mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04: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},
|
||||
{$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, {
|
||||
code: 200,
|
||||
data: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue