Skip to content

Commit e8abfb3

Browse files
committed
Support awaitable typeORM transactions
1 parent 401f892 commit e8abfb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ export const typeORMDriver = {
438438
fail(e);
439439
}
440440
},
441-
transaction: (fn: (tx: Transaction) => Promise<void>): void => {
442-
return QuickSQLite.transaction(options.name, fn);
441+
transaction: (fn: (tx: Transaction) => Promise<void>): Promise<void> => {
442+
return QuickSQLite.transactionAsync(options.name, fn);
443443
},
444444
close: (ok: any, fail: any) => {
445445
try {

0 commit comments

Comments
 (0)