From a0bd0e83a3a03be4f668644edcb4b072da712db0 Mon Sep 17 00:00:00 2001 From: Vardan Nadkarni Date: Mon, 4 Dec 2023 16:15:28 +0530 Subject: [PATCH] Update transactions API --- .../shared/dataService/business/transactions.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/services/blockchain-indexer/shared/dataService/business/transactions.js b/services/blockchain-indexer/shared/dataService/business/transactions.js index 5e8d8f08de..2fcf4a5231 100644 --- a/services/blockchain-indexer/shared/dataService/business/transactions.js +++ b/services/blockchain-indexer/shared/dataService/business/transactions.js @@ -64,11 +64,6 @@ const normalizeTransactions = async txs => { return normalizedTransactions; }; -const getTransactionByID = async id => { - const response = await requestConnector('getTransactionByID', { id }); - return normalizeTransaction(response); -}; - const getTransactionsByIDs = async ids => { const response = await requestConnector('getTransactionsByIDs', { ids }); return normalizeTransactions(response); @@ -147,11 +142,6 @@ const getTransactions = async params => { await getTransactionsByIDs(params.ids.slice(i * BATCH_SIZE, (i + 1) * BATCH_SIZE)), ); } - } else if (params.id) { - transactions.data.push(await getTransactionByID(params.id)); - if ('offset' in params && params.limit) { - transactions.data = transactions.data.slice(params.offset, params.offset + params.limit); - } } transactions.data = await BluebirdPromise.map(