mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
correct return values
This commit is contained in:
parent
67c8a98f20
commit
36d7b0f8a7
1 changed files with 3 additions and 2 deletions
|
|
@ -4468,12 +4468,13 @@ JsonRoutes.add('GET', '/api/boards/:boardId/cards_count', function(
|
|||
if (!card) {
|
||||
throw new Meteor.Error(404, 'Card not found');
|
||||
}
|
||||
const archive_res = card.archive();
|
||||
card.archive();
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: {
|
||||
_id: paramCardId,
|
||||
...archive_res.$set,
|
||||
archived: true,
|
||||
archivedAt: new Date(),
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue