From 5d6547a1847641517b931736fade52743dc59b4a Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Wed, 17 Jan 2024 11:59:51 +0100 Subject: [PATCH] fix bad validation : wrong cascade update after ad status change --- .../application/commands/validate-ad/validate-ad.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/ad/core/application/commands/validate-ad/validate-ad.service.ts b/src/modules/ad/core/application/commands/validate-ad/validate-ad.service.ts index 4d99750..c4ed353 100644 --- a/src/modules/ad/core/application/commands/validate-ad/validate-ad.service.ts +++ b/src/modules/ad/core/application/commands/validate-ad/validate-ad.service.ts @@ -15,8 +15,8 @@ export class ValidateAdService implements ICommandHandler { async execute(command: ValidateAdCommand): Promise { const ad: AdEntity = await this.repository.findOneById(command.id, { - waypoints: true, - schedule: true, + waypoints: false, + schedule: false, }); ad.valid(); await this.repository.update(ad.id, ad);