fix: Too many connections
This commit is contained in:
parent
b2742af957
commit
304f7e557d
2 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "muffinbot",
|
"name": "muffinbot",
|
||||||
"version": "2.0.0-oreo.p240608a",
|
"version": "2.0.0-oreo.r240614a",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -22,9 +22,6 @@ export class MaaDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async ping() {
|
public async ping() {
|
||||||
this._database.getConnection().then(conn => {
|
this._database.ping()
|
||||||
conn.ping()
|
|
||||||
conn.release()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue