fix: bot die (Maybe)
This commit is contained in:
parent
a5def02140
commit
8c37f360c1
2 changed files with 3 additions and 4 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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()
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue