update connect var
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jusax23 2023-03-01 16:32:34 +01:00
parent cbac881a49
commit d51ad10864
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -74,6 +74,7 @@ export class DB {
if (!this.connected) throw new Error("Not connected yet!"); if (!this.connected) throw new Error("Not connected yet!");
if (this.type == dbType.mariadb && this.mariaPool) await this.mariaPool.end(); if (this.type == dbType.mariadb && this.mariaPool) await this.mariaPool.end();
//if (this.type == dbType.postgres && this.pgPool) await this.pgPool.end(); //if (this.type == dbType.postgres && this.pgPool) await this.pgPool.end();
this.connected = false;
} }
} }