Skip to content

Commit 999b563

Browse files
committed
fix(controller): Added import for initGroupSetting decorator and applied it to handleCommand method in Command class.
1 parent 95e3e53 commit 999b563

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/controller/command.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { COMMANDS } from "../helper";
55
import { AdminCommand } from "../group-management/AdminCommand";
66
import { Logger } from "../config/logger";
77
import { RateLimiter } from "../helper/RateLimiter";
8+
import { initGroupSetting } from "../decorators/db";
89
const logger = new Logger({
910
file: "command.log",
1011
level: "debug",
@@ -52,6 +53,7 @@ export class Command {
5253
}
5354

5455
@SafeExecution()
56+
@initGroupSetting()
5557
static async handleCommand(ctx: Context): Promise<void> {
5658
const userId = ctx.from?.id;
5759
if (!userId) return;

0 commit comments

Comments
 (0)