summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-10-23 21:02:13 +0300
committerLauri Ojansivu <x@xet7.org>2018-10-23 21:02:13 +0300
commit54f8d4f30807489544523f4c0df78e41d3f6bf21 (patch)
tree5a691082a3da622f0ccbef723f07619ed463b6e4 /models/cards.js
parentfa548a4c3266beaaa8da1049dc76602bfd3676e7 (diff)
parent0de01356197d0317f538aa9a3c6e0213b5dfd396 (diff)
downloadwekan-54f8d4f30807489544523f4c0df78e41d3f6bf21.tar.gz
wekan-54f8d4f30807489544523f4c0df78e41d3f6bf21.tar.bz2
wekan-54f8d4f30807489544523f4c0df78e41d3f6bf21.zip
Merge branch 'bentiss-api-fixes' into edge
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 25692c25..9bb67f41 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1514,6 +1514,16 @@ if (Meteor.isServer) {
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
{$set: {customFields: newcustomFields}});
}
+ if (req.body.hasOwnProperty('members')) {
+ const newmembers = req.body.members;
+ 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: {