From d51ad10864cfb5bcefbe54715c3484893d8e8304 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Wed, 1 Mar 2023 16:32:34 +0100 Subject: [PATCH] update connect var --- src/db.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.ts b/src/db.ts index 8057ce0..a676ab3 100644 --- a/src/db.ts +++ b/src/db.ts @@ -74,6 +74,7 @@ export class DB { if (!this.connected) throw new Error("Not connected yet!"); if (this.type == dbType.mariadb && this.mariaPool) await this.mariaPool.end(); //if (this.type == dbType.postgres && this.pgPool) await this.pgPool.end(); + this.connected = false; } }