diff --git a/app/controllers/api/v1/community-member/multiSwap/transactions.ts b/app/controllers/api/v1/community-member/multiSwap/transactions.ts index 27674e1..31d0c9f 100644 --- a/app/controllers/api/v1/community-member/multiSwap/transactions.ts +++ b/app/controllers/api/v1/community-member/multiSwap/transactions.ts @@ -132,7 +132,12 @@ module.exports = function (router: any) { totalCount = await db.SwapAndWithdrawTransactions.countDocuments(filter); if (req.query.isPagination != null && req.query.isPagination == "false") { - transactions = await db.SwapAndWithdrawTransactions.find(filter) + transactions = await db.SwapAndWithdrawTransactions.find(filter, { + generatorSig: 0, + validatorSig: 0, + withdrawalSig: 0, + nodeJobs: 0, + }) .populate("destinationNetwork") .populate("sourceNetwork") .populate({ @@ -151,7 +156,12 @@ module.exports = function (router: any) { }) .sort(sort); } else { - transactions = await db.SwapAndWithdrawTransactions.find(filter) + transactions = await db.SwapAndWithdrawTransactions.find(filter, { + generatorSig: 0, + validatorSig: 0, + withdrawalSig: 0, + nodeJobs: 0, + }) .populate("networks") .populate("destinationNetwork") .populate("sourceNetwork") @@ -175,8 +185,7 @@ module.exports = function (router: any) { } return res.http200({ - swapAndWithdrawTransactions: - swapTransactionHelper.toArrayObject(transactions), + swapAndWithdrawTransactions: transactions, totalCount: totalCount, }); })