fix: bot die (Maybe)

This commit is contained in:
Siwoo Jeon 2024-07-26 18:12:48 +09:00
parent a5def02140
commit 8c37f360c1
Signed by: migan
GPG key ID: C4151385FFD2082A
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "muffinbot", "name": "muffinbot",
"version": "2.0.0-oreo.r240714a", "version": "2.0.1-oreo.r240726a",
"main": "dist/index.js", "main": "dist/index.js",
"private": true, "private": true,
"dependencies": { "dependencies": {

View file

@ -18,8 +18,7 @@ export class MaaDatabase {
public async ping() { public async ping() {
const db = await this._database.getConnection() const db = await this._database.getConnection()
await run(db, async () => { await db.ping()
await db.ping() db.release()
})
} }
} }