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 fad1dd3 commit 7bfaf8cCopy full SHA for 7bfaf8c
package/src/operations/transaction.ts
@@ -108,9 +108,10 @@ export const transaction = (
108
109
return new Promise((resolve, reject) => {
110
const tx: PendingTransaction = {
111
- start: () => {
+ start: async () => {
112
try {
113
- run().then(resolve)
+ const result = await run()
114
+ resolve(result)
115
} catch (error) {
116
reject(NitroSQLiteError.fromError(error))
117
}
0 commit comments