Skip to content

Commit 827662b

Browse files
committed
feat(api): Use read client in getBlocksData
1 parent 90091c3 commit 827662b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/blocks.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ export class BlocksService {
402402
limit: number,
403403
includeTransactions: boolean,
404404
): Promise<Block[] | (Block & { transactions: Transaction[] })[]> {
405-
const blocks = await this.prisma.block.findMany({
405+
const blocks = await this.prisma.readClient.block.findMany({
406406
cursor,
407407
orderBy,
408408
where,

0 commit comments

Comments
 (0)