Merge pull request #1626 from ThisNeko/devel

API Edit Card Labels
This commit is contained in:
Lauri Ojansivu 2018-05-04 15:50:00 +03:00 committed by GitHub
commit c48c18c4e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -543,6 +543,11 @@ if (Meteor.isServer) {
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
{$set: {description: newDescription}});
}
if (req.body.hasOwnProperty('labelIds')) {
const newlabelIds = req.body.labelIds;
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
{$set: {labelIds: newlabelIds}});
}
JsonRoutes.sendResult(res, {
code: 200,
data: {