File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/runtime/src/client Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2083,7 +2083,7 @@ export abstract class BaseOperationHandler<Schema extends SchemaDef> {
20832083 } else {
20842084 // otherwise, create a new transaction and execute the callback
20852085 let txBuilder = this . kysely . transaction ( ) ;
2086- txBuilder = txBuilder . setIsolationLevel ( isolationLevel ?? TransactionIsolationLevel . RepeatableRead ) ;
2086+ txBuilder = txBuilder . setIsolationLevel ( isolationLevel ?? TransactionIsolationLevel . ReadCommitted ) ;
20872087 return txBuilder . execute ( callback ) ;
20882088 }
20892089 }
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export class ZenStackQueryExecutor<Schema extends SchemaDef> extends DefaultQuer
9090 // mutations are wrapped in tx if not already in one
9191 if ( this . isMutationNode ( compiledQuery . query ) && ! this . driver . isTransactionConnection ( connection ) ) {
9292 await this . driver . beginTransaction ( connection , {
93- isolationLevel : TransactionIsolationLevel . RepeatableRead ,
93+ isolationLevel : TransactionIsolationLevel . ReadCommitted ,
9494 } ) ;
9595 startedTx = true ;
9696 }
You can’t perform that action at this time.
0 commit comments