Skip to content

Commit 1083e9f

Browse files
committed
chore: Remove console logs in AdminCommands, ConnectionPool, and GroupRuleService.
1 parent 2bf45d1 commit 1083e9f

3 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/bot/commands/admin/AdminCommands.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ export class AdminCommands {
305305
return;
306306
}
307307
if (welcomeContent) {
308-
console.log('welcomeContent', welcomeContent);
309308
await GroupSettingsService.setWelcomeMessage(ctx, welcomeContent);
310309
await reply.textReply(`The welcome message has been updated to: \n${welcomeContent}`);
311310
return;

src/database/ConnectionPool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export class ConnectionPool {
2020
await this._pool.connect();
2121
} catch (error: any) {
2222
console.log('error:', error.code);
23-
2423
if (error.code === '3D000') {
2524
console.log(`Database does not exist. Creating database ${Config.database.databaseName}...`);
2625
await this.createDatabase();

src/database/models/GroupRule.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ export class GroupRuleService {
103103
const groupId = chat.id;
104104

105105
const groupRules = await this.getRulesByGroupId(groupId);
106-
console.log('groupRules', groupRules);
107-
108106
if (groupRules.length === 0) {
109107
console.log(`No rules found for group ID: ${groupId}.`);
110108
return;

0 commit comments

Comments
 (0)