From 9606daaf63daed55e1c7af11e3d2546c711c8f74 Mon Sep 17 00:00:00 2001 From: Aleksandr Bukhalo Date: Sun, 12 Jan 2020 01:45:10 +0300 Subject: [PATCH] refactor(telegraf.module.ts): remove configure method --- lib/telegraf.module.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/telegraf.module.ts b/lib/telegraf.module.ts index 0ec8ab7..eda448a 100644 --- a/lib/telegraf.module.ts +++ b/lib/telegraf.module.ts @@ -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,