refactor: remove unecessary catches in commit and rollback methods

This commit is contained in:
Viren070
2025-06-09 15:47:08 +01:00
parent 6bc9e9dac5
commit 9d299ae5bd
-4
View File
@@ -173,8 +173,6 @@ export class DB {
commit: async () => {
try {
await client.query('COMMIT');
} catch (error) {
throw error;
} finally {
finalise();
}
@@ -182,8 +180,6 @@ export class DB {
rollback: async () => {
try {
await client.query('ROLLBACK');
} catch (error) {
throw error;
} finally {
finalise();
}