correct return values

This commit is contained in:
Mial Lewis 2025-11-27 00:52:28 +00:00
parent 67c8a98f20
commit 36d7b0f8a7

View file

@ -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(),
}, },
}); });
}, },