fix: can't ping
This commit is contained in:
parent
4c65794b6c
commit
6fc1183148
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "muffin-ai-arujak",
|
"name": "muffin-ai-arujak",
|
||||||
"version": "2.0.0-77-oreo",
|
"version": "2.0.0-78-oreo",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -22,7 +22,10 @@ export class MaaDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async ping() {
|
public async ping() {
|
||||||
await this._database.ping()
|
this._database.getConnection().then(conn => {
|
||||||
|
conn.ping()
|
||||||
|
conn.release()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue