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 {
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user