replace configuration module by dedicated package

This commit is contained in:
sbriat
2023-05-30 11:41:30 +02:00
parent a14ac74d5b
commit 0bf3048d0e
21 changed files with 113 additions and 499 deletions

View File

@@ -1,6 +1,6 @@
import { RabbitSubscribe } from '@golevelup/nestjs-rabbitmq';
import { Controller } from '@nestjs/common';
import { CommandBus } from '@nestjs/cqrs';
import { CommandBus, QueryBus } from '@nestjs/cqrs';
import { CreateAdCommand } from '../../commands/create-ad.command';
import { CreateAdRequest } from '../../domain/dtos/create-ad.request';
import { validateOrReject } from 'class-validator';
@@ -14,6 +14,7 @@ export class AdMessagerController {
constructor(
private readonly messager: Messager,
private readonly commandBus: CommandBus,
private readonly queryBus: QueryBus,
) {}
@RabbitSubscribe({