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; } }