diff --git a/package.json b/package.json index 6a4c668..5c664b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muffinbot", - "version": "2.0.0-oreo.r240714a", + "version": "2.0.1-oreo.r240726a", "main": "dist/index.js", "private": true, "dependencies": { diff --git a/src/modules/database/database.ts b/src/modules/database/database.ts index fbbbcfa..625f355 100644 --- a/src/modules/database/database.ts +++ b/src/modules/database/database.ts @@ -18,8 +18,7 @@ export class MaaDatabase { public async ping() { const db = await this._database.getConnection() - await run(db, async () => { - await db.ping() - }) + await db.ping() + db.release() } }