diff --git a/server/handlers/transferHandler/index.js b/server/handlers/transferHandler/index.js index b57d8877..42c3ad4c 100644 --- a/server/handlers/transferHandler/index.js +++ b/server/handlers/transferHandler/index.js @@ -75,7 +75,13 @@ const transferGet = async (req, res) => { const transferService = new TransferService(); const transfers = await transferService.getByFilter(req.query, req.wallet_id); - res.status(200).json({ transfers }); + const modifiedTransfers = transfers.map((t) => ({ + ...t, + token_count: + +t.parameters?.bundle?.bundleSize || +t.parameters?.tokens?.length, + })); + + res.status(200).json({ transfers: modifiedTransfers }); }; const transferIdGet = async (req, res) => {