summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2018-06-26 11:11:55 +0200
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2018-10-23 18:48:05 +0200
commit33d4ad76caefede0680a7868b9772f9917fd4d90 (patch)
tree7bebf5618edcc300bd9c7618ee97236d06fd372c /models
parent53c8e63a09b513a37d308d2301b2925e239dabfe (diff)
downloadwekan-33d4ad76caefede0680a7868b9772f9917fd4d90.tar.gz
wekan-33d4ad76caefede0680a7868b9772f9917fd4d90.tar.bz2
wekan-33d4ad76caefede0680a7868b9772f9917fd4d90.zip
models: cards: add members PUT entry point
Allows to change the members from the API
Diffstat (limited to 'models')
-rw-r--r--models/cards.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 25692c25..e7649657 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1514,6 +1514,11 @@ 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}});
+ }
JsonRoutes.sendResult(res, {
code: 200,
data: {