We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ce337 commit 6f8cf19Copy full SHA for 6f8cf19
packages/runtime/src/client/crud/operations/base.ts
@@ -2193,9 +2193,7 @@ export abstract class BaseOperationHandler<Schema extends SchemaDef> {
2193
} else {
2194
// otherwise, create a new transaction and execute the callback
2195
let txBuilder = this.kysely.transaction();
2196
- if (isolationLevel) {
2197
- txBuilder = txBuilder.setIsolationLevel(isolationLevel);
2198
- }
+ txBuilder = txBuilder.setIsolationLevel(isolationLevel ?? 'repeatable read');
2199
return txBuilder.execute(callback);
2200
}
2201
0 commit comments