fix: can't ping

This commit is contained in:
Siwoo Jeon 2023-11-30 13:18:55 +09:00
parent 4c65794b6c
commit 6fc1183148
Signed by: migan
GPG key ID: C4151385FFD2082A
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "muffin-ai-arujak",
"version": "2.0.0-77-oreo",
"version": "2.0.0-78-oreo",
"main": "dist/index.js",
"private": true,
"dependencies": {

View file

@ -22,7 +22,10 @@ export class MaaDatabase {
}
public async ping() {
await this._database.ping()
this._database.getConnection().then(conn => {
conn.ping()
conn.release()
})
}
}