mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-10-09 06:37:15 +03:00
chore(): cleanup debug code
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
Global,
|
||||
Inject,
|
||||
OnApplicationShutdown,
|
||||
Logger,
|
||||
} from '@nestjs/common';
|
||||
import {
|
||||
TelegrafModuleOptions,
|
||||
@@ -29,14 +28,10 @@ import { defer } from 'rxjs';
|
||||
providers: [UpdatesExplorerService, MetadataAccessorService],
|
||||
})
|
||||
export class TelegrafCoreModule implements OnApplicationShutdown {
|
||||
private readonly logger = new Logger(TelegrafCoreModule.name);
|
||||
|
||||
constructor(
|
||||
@Inject(TELEGRAF_BOT_NAME) private readonly botName: string,
|
||||
private readonly moduleRef: ModuleRef,
|
||||
) {
|
||||
this.logger.debug(botName);
|
||||
}
|
||||
) {}
|
||||
|
||||
public static forRoot(options: TelegrafModuleOptions): DynamicModule {
|
||||
const telegrafBotName = getBotToken(options.botName);
|
||||
|
Reference in New Issue
Block a user