|
1 | | -import { InstanceWrapper } from '@nestjs/core/injector/container'; |
2 | 1 | import { Controller } from '@nestjs/common/interfaces/controllers/controller.interface'; |
3 | | -import { ListenersController } from './listeners-controller'; |
4 | | -import { CustomTransportStrategy } from './interfaces'; |
5 | | -import { Server } from './server/server'; |
6 | | -import { ClientsContainer } from './container'; |
7 | | -import { RpcContextCreator } from './context/rpc-context-creator'; |
8 | | -import { RpcProxy } from './context/rpc-proxy'; |
9 | | -import { ExceptionFiltersContext } from './context/exception-filters-context'; |
10 | | -import { PipesContextCreator } from '@nestjs/core/pipes/pipes-context-creator'; |
11 | | -import { PipesConsumer } from '@nestjs/core/pipes/pipes-consumer'; |
12 | | -import { GuardsContextCreator } from '@nestjs/core/guards/guards-context-creator'; |
13 | 2 | import { RuntimeException } from '@nestjs/core/errors/exceptions/runtime.exception'; |
14 | 3 | import { GuardsConsumer } from '@nestjs/core/guards/guards-consumer'; |
15 | | -import { InterceptorsContextCreator } from '@nestjs/core/interceptors/interceptors-context-creator'; |
| 4 | +import { GuardsContextCreator } from '@nestjs/core/guards/guards-context-creator'; |
| 5 | +import { InstanceWrapper } from '@nestjs/core/injector/container'; |
16 | 6 | import { InterceptorsConsumer } from '@nestjs/core/interceptors/interceptors-consumer'; |
| 7 | +import { InterceptorsContextCreator } from '@nestjs/core/interceptors/interceptors-context-creator'; |
| 8 | +import { PipesConsumer } from '@nestjs/core/pipes/pipes-consumer'; |
| 9 | +import { PipesContextCreator } from '@nestjs/core/pipes/pipes-context-creator'; |
| 10 | +import { ClientsContainer } from './container'; |
| 11 | +import { ExceptionFiltersContext } from './context/exception-filters-context'; |
| 12 | +import { RpcContextCreator } from './context/rpc-context-creator'; |
| 13 | +import { RpcProxy } from './context/rpc-proxy'; |
| 14 | +import { CustomTransportStrategy } from './interfaces'; |
| 15 | +import { ListenersController } from './listeners-controller'; |
| 16 | +import { Server } from './server/server'; |
17 | 17 |
|
18 | 18 | export class MicroservicesModule { |
19 | 19 | private readonly clientsContainer = new ClientsContainer(); |
@@ -67,8 +67,8 @@ export class MicroservicesModule { |
67 | 67 | ); |
68 | 68 | } |
69 | 69 |
|
70 | | - public bindClients(controllers: Map<string, InstanceWrapper<Controller>>) { |
71 | | - controllers.forEach(({ instance, isNotMetatype }) => { |
| 70 | + public bindClients(items: Map<string, InstanceWrapper<Controller>>) { |
| 71 | + items.forEach(({ instance, isNotMetatype }) => { |
72 | 72 | !isNotMetatype && |
73 | 73 | this.listenersController.bindClientsToProperties(instance); |
74 | 74 | }); |
|
0 commit comments