From 0db17ccc0a396e99b1fd141b6e1aa42ca8a0e231 Mon Sep 17 00:00:00 2001 From: jejolare Date: Wed, 8 Jan 2025 04:36:16 +0700 Subject: [PATCH] fix get_tx_details --- server/server.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/server.ts b/server/server.ts index a1c04e6..61fc10e 100644 --- a/server/server.ts +++ b/server/server.ts @@ -660,7 +660,10 @@ const requestsLimiter = rateLimit({ if (tx_hash) { // Fetching transaction details with associated block information using Sequelize const transaction = await Transaction.findOne({ - where: { tx_id: tx_hash }, + where: { + tx_id: tx_hash, + keeper_block: { [Op.ne]: null } + }, }); @@ -668,9 +671,6 @@ const requestsLimiter = rateLimit({ where: { height: transaction?.keeper_block }, }).catch(() => null); - console.log("txData", transaction, transactionBlock); - - if (transaction && transactionBlock) { const response = {