From 304f7e557d091b7328e0afa14886e91b4888460e Mon Sep 17 00:00:00 2001 From: Migan178 Date: Fri, 14 Jun 2024 20:46:42 +0900 Subject: [PATCH] fix: Too many connections --- package.json | 2 +- src/modules/database/database.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f2d7119..e04a302 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muffinbot", - "version": "2.0.0-oreo.p240608a", + "version": "2.0.0-oreo.r240614a", "main": "dist/index.js", "private": true, "dependencies": { diff --git a/src/modules/database/database.ts b/src/modules/database/database.ts index 9c006f0..49bd683 100644 --- a/src/modules/database/database.ts +++ b/src/modules/database/database.ts @@ -22,9 +22,6 @@ export class MaaDatabase { } public async ping() { - this._database.getConnection().then(conn => { - conn.ping() - conn.release() - }) + this._database.ping() } }