From 2ce64cd1c48f9e4f0666dcaff9b81e79f17f3957 Mon Sep 17 00:00:00 2001 From: Fanch Date: Thu, 16 May 2024 11:24:14 +0200 Subject: [PATCH] fix(ad pause): fix code after merge of update ad --- .../ad/core/application/commands/create-ad/create-ad.service.ts | 1 + tests/unit/ad/interface/ad.fixtures.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/modules/ad/core/application/commands/create-ad/create-ad.service.ts b/src/modules/ad/core/application/commands/create-ad/create-ad.service.ts index 98a95dc..8ed52c7 100644 --- a/src/modules/ad/core/application/commands/create-ad/create-ad.service.ts +++ b/src/modules/ad/core/application/commands/create-ad/create-ad.service.ts @@ -75,6 +75,7 @@ export function createPropsFromCommand( seatsProposed: command.seatsProposed ?? 0, seatsRequested: command.seatsRequested ?? 0, strict: command.strict, + pause: command.pause, waypoints: command.waypoints.map((waypoint: Waypoint) => ({ position: waypoint.position, address: { diff --git a/tests/unit/ad/interface/ad.fixtures.ts b/tests/unit/ad/interface/ad.fixtures.ts index 6e19747..05328e8 100644 --- a/tests/unit/ad/interface/ad.fixtures.ts +++ b/tests/unit/ad/interface/ad.fixtures.ts @@ -37,6 +37,7 @@ export function punctualCreateAdRequest(): CreateAdRequestDto { seatsRequested: 1, seatsProposed: 3, strict: false, + pause: false, frequency: Frequency.PUNCTUAL, waypoints: [originWaypoint, destinationWaypoint], };