mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
models: cards: add members PUT entry point
Allows to change the members from the API
This commit is contained in:
parent
53c8e63a09
commit
33d4ad76ca
1 changed files with 5 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue