Skip to content

Commit 6f8cf19

Browse files
committed
update
1 parent 80ce337 commit 6f8cf19

File tree

1 file changed

+1
-3
lines changed
  • packages/runtime/src/client/crud/operations

1 file changed

+1
-3
lines changed

packages/runtime/src/client/crud/operations/base.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,9 +2193,7 @@ export abstract class BaseOperationHandler<Schema extends SchemaDef> {
21932193
} else {
21942194
// otherwise, create a new transaction and execute the callback
21952195
let txBuilder = this.kysely.transaction();
2196-
if (isolationLevel) {
2197-
txBuilder = txBuilder.setIsolationLevel(isolationLevel);
2198-
}
2196+
txBuilder = txBuilder.setIsolationLevel(isolationLevel ?? 'repeatable read');
21992197
return txBuilder.execute(callback);
22002198
}
22012199
}

0 commit comments

Comments
 (0)