Skip to content

Commit 04a7af7

Browse files
committed
fix: Removed database connection release in handleMessage and added empty implementation
1 parent f1ae79e commit 04a7af7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/bot/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,7 @@ export class CopBot {
137137
}
138138
@MessageValidator()
139139
@SaveUserData()
140-
async handleMessage(ctx: Context) {
141-
try {
142-
const client = await ServiceProvider.getInstance().getConnectionPool().getClient();
143-
client.release();
144-
} catch (err: any) {
145-
logger.error(`Database error in handleMessage: ${err.message}`);
146-
await ctx.reply('Error processing your request. Please try again later.');
147-
}
148-
}
140+
async handleMessage(ctx: Context) {}
149141
@SaveUserData()
150142
async handleJoinNewChat(ctx: Context) {
151143
if (!ctx.message?.text) {

0 commit comments

Comments
 (0)