From 78be0238f565ece0e187260c00914fc63b8d329f Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:51:39 +1000 Subject: [PATCH] fix(database/connection): return promise from commit method --- src/database/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/connection.ts b/src/database/connection.ts index ba371a6..6c51eed 100644 --- a/src/database/connection.ts +++ b/src/database/connection.ts @@ -50,7 +50,7 @@ export class MySql { commit() { delete this.transaction; - this.connection.commit(); + return this.connection.commit(); } [Symbol.dispose]() {