refactor(telegraf.module.ts): remove configure method

This commit is contained in:
Aleksandr Bukhalo 2020-01-12 01:45:10 +03:00
parent e9d793aeaa
commit 9606daaf63

View File

@ -1,7 +1,5 @@
import { import {
MiddlewareConsumer,
Module, Module,
NestModule,
DynamicModule, DynamicModule,
Provider, Provider,
} from '@nestjs/common' } from '@nestjs/common'
@ -15,11 +13,7 @@ import { TokenInjectionToken } from './TokenInjectionToken'
import { TelegramClient } from './TelegramClient' import { TelegramClient } from './TelegramClient'
@Module({}) @Module({})
export class TelegrafModule implements NestModule { export class TelegrafModule {
public configure(consumer: MiddlewareConsumer) {
// pass
}
static fromFactory(options: TelegrafModuleAsyncOptions): DynamicModule { static fromFactory(options: TelegrafModuleAsyncOptions): DynamicModule {
return { return {
module: TelegrafModule, module: TelegrafModule,