Skip to content

Commit c2707f5

Browse files
committed
fix: transfer repository logic
1 parent 94dbc60 commit c2707f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

indexer/src/kadena-server/repository/infra/repository/transfer-db-repository.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,11 @@ export default class TransferDbRepository implements TransferRepository {
122122

123123
if (blockHash) {
124124
queryParams.push(blockHash);
125-
const op = operator(queryParams.length);
126125
query = `
127126
WITH filtered_block AS (
128127
SELECT id, height, hash
129128
FROM "Blocks" b
130-
${op} b.hash = $${queryParams.length}
129+
WHERE b.hash = $${queryParams.length}
131130
)
132131
select transfers.id as id,
133132
transfers.amount as "transferAmount",

0 commit comments

Comments
 (0)