block fix

This commit is contained in:
jejolare 2024-10-17 18:26:45 +07:00
parent 17d862dab6
commit ce7adf84d6

View file

@ -647,13 +647,9 @@ const requestsLimiter = rateLimit({
}
const blockInfo = await Block.findOne({
where: { tx_id: data.result?.tx_info?.keeper_block?.toString() },
where: { height: data.result?.tx_info?.keeper_block?.toString() },
});
console.log(blockInfo, data.result?.tx_info?.keeper_block?.toString());
res.json({
...data.result.tx_info,
...(blockInfo || {}),