fix(db): incorrect error handling when no callback is defined

Partly reverts some changes made for the experimental
transaction export.
This commit is contained in:
Linden committed 2024-03-05 00:47:46 +11:00
1 parent 8b8670e462
commit 46a7dabc1e
3 files changed
+3 -10

No files matched your search

-2
View File
@@ -83,8 +83,6 @@ export const rawExecute = async (
}
}
} catch (err: any) {
if (!cb) throw new Error(err.message || err);
logError(invokingResource, cb, isPromise, err, query, parameters);
} finally {
connection.release();