mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
API Edit Card Labels
This commit is contained in:
parent
dcd5af0a76
commit
2da157dbb0
1 changed files with 5 additions and 0 deletions
|
|
@ -543,6 +543,11 @@ if (Meteor.isServer) {
|
||||||
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
|
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
|
||||||
{$set: {description: newDescription}});
|
{$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, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
data: {
|
data: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue