This commit is contained in:
parent
cbac881a49
commit
d51ad10864
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue