add controller in module

This commit is contained in:
Sylvain Briat 2024-02-15 17:55:17 +01:00 committed by Fanch
parent bbb96cfd36
commit 98d2b521ab
1 changed files with 4 additions and 0 deletions

View File

@ -27,11 +27,14 @@ import { MatcherAdCreatedMessageHandler } from './interface/message-handlers/mat
import { ValidateAdService } from './core/application/commands/validate-ad/validate-ad.service'; import { ValidateAdService } from './core/application/commands/validate-ad/validate-ad.service';
import { MatcherAdCreationFailedMessageHandler } from './interface/message-handlers/matcher-ad-creation-failed.message-handler'; import { MatcherAdCreationFailedMessageHandler } from './interface/message-handlers/matcher-ad-creation-failed.message-handler';
import { InvalidateAdService } from './core/application/commands/invalidate-ad/invalidate-ad.service'; import { InvalidateAdService } from './core/application/commands/invalidate-ad/invalidate-ad.service';
import { FindAdsByUserIdGrpcController } from './interface/grpc-controllers/find-ads-by-user-id.grpc.controller';
import { FindAdsByUserIdQueryHandler } from './core/application/queries/find-ads-by-user-id/find-ads-by-user-id.query-handler';
const grpcControllers = [ const grpcControllers = [
CreateAdGrpcController, CreateAdGrpcController,
FindAdByIdGrpcController, FindAdByIdGrpcController,
FindAdsByIdsGrpcController, FindAdsByIdsGrpcController,
FindAdsByUserIdGrpcController,
]; ];
const messageHandlers = [ const messageHandlers = [
@ -52,6 +55,7 @@ const commandHandlers: Provider[] = [
const queryHandlers: Provider[] = [ const queryHandlers: Provider[] = [
FindAdByIdQueryHandler, FindAdByIdQueryHandler,
FindAdsByIdsQueryHandler, FindAdsByIdsQueryHandler,
FindAdsByUserIdQueryHandler,
]; ];
const mappers: Provider[] = [AdMapper]; const mappers: Provider[] = [AdMapper];