mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-01-11 22:51:06 +03:00
refactor(telegraf.module.ts): remove configure method
This commit is contained in:
parent
e9d793aeaa
commit
9606daaf63
@ -1,7 +1,5 @@
|
||||
import {
|
||||
MiddlewareConsumer,
|
||||
Module,
|
||||
NestModule,
|
||||
DynamicModule,
|
||||
Provider,
|
||||
} from '@nestjs/common'
|
||||
@ -15,11 +13,7 @@ import { TokenInjectionToken } from './TokenInjectionToken'
|
||||
import { TelegramClient } from './TelegramClient'
|
||||
|
||||
@Module({})
|
||||
export class TelegrafModule implements NestModule {
|
||||
public configure(consumer: MiddlewareConsumer) {
|
||||
// pass
|
||||
}
|
||||
|
||||
export class TelegrafModule {
|
||||
static fromFactory(options: TelegrafModuleAsyncOptions): DynamicModule {
|
||||
return {
|
||||
module: TelegrafModule,
|
||||
|
Loading…
Reference in New Issue
Block a user