File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,15 @@ export class BlocksTransactionsService {
103
103
}
104
104
105
105
async findBlocksByTransaction ( transaction : Transaction ) : Promise < Block [ ] > {
106
- const blocksTransactions = await this . prisma . blockTransaction . findMany ( {
107
- where : {
108
- transaction_id : transaction . id ,
109
- } ,
110
- include : {
111
- block : true ,
112
- } ,
113
- } ) ;
106
+ const blocksTransactions =
107
+ await this . prisma . readClient . blockTransaction . findMany ( {
108
+ where : {
109
+ transaction_id : transaction . id ,
110
+ } ,
111
+ include : {
112
+ block : true ,
113
+ } ,
114
+ } ) ;
114
115
return blocksTransactions . map ( ( blockTransaction ) => blockTransaction . block ) ;
115
116
}
116
117
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class TransactionsService {
156
156
where : Prisma . TransactionWhereInput ,
157
157
includeBlocks : boolean ,
158
158
) : Promise < Transaction [ ] | ( Transaction & { blocks : Block [ ] } ) [ ] > {
159
- const transactions = await this . prisma . transaction . findMany ( {
159
+ const transactions = await this . prisma . readClient . transaction . findMany ( {
160
160
orderBy,
161
161
take : limit ,
162
162
where,
You can’t perform that action at this time.
0 commit comments