mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +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) {
|
if (!card) {
|
||||||
throw new Meteor.Error(404, 'Card not found');
|
throw new Meteor.Error(404, 'Card not found');
|
||||||
}
|
}
|
||||||
const archive_res = card.archive();
|
card.archive();
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
data: {
|
data: {
|
||||||
_id: paramCardId,
|
_id: paramCardId,
|
||||||
...archive_res.$set,
|
archived: true,
|
||||||
|
archivedAt: new Date(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue