Skip to content

Commit 83aa185

Browse files
committed
send string chainId to primsa sql template tag
1 parent a52a333 commit 83aa185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/chainIndexers/getChainIndexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const getBlockForIndexing = async ({
4343
FROM
4444
"chain_indexers"
4545
WHERE
46-
"chainId"=${Prisma.sql`${chainId}`}
46+
"chainId"=${Prisma.sql`${chainId.toString()}`}
4747
FOR UPDATE NOWAIT
4848
`;
4949
return lastIndexedBlock[0].lastIndexedBlock;

0 commit comments

Comments
 (0)