API Edit Card Labels

reviewable/pr1626/r1
thisNeko 7 years ago committed by NET\faguet
parent dcd5af0a76
commit 2da157dbb0
  1. 5
      models/cards.js

@ -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: {

Loading…
Cancel
Save