Skip to content
Snippets Groups Projects
asker.nats.module.ts 744 B
Newer Older
import { Module, ValidationPipe } from "@nestjs/common";
import { ConfigModule } from "@nestjs/config";
import { LedgersModule } from "@ocm-engine/ledgers";
import { APP_PIPE } from "@nestjs/core";
import { AgentConsumerService } from "./agent.consumer.service";
import { AgentService } from "../asker/agent.service";
import { ConsumerService } from "@ocm-engine/nats";
import { GatewayClient } from "@ocm-engine/clients";

@Module({
  imports: [ConfigModule, LedgersModule],
  providers: [
    ConsumerService,
    AgentConsumerService,
    AgentService,
    {
      provide: APP_PIPE,
      useValue: new ValidationPipe({
        transform: true,
      }),
    },
  ],
export class AskerNatsModule {}