diff --git a/src/modules/ad/core/domain/ad.factory.ts b/src/modules/ad/core/domain/ad.factory.ts index 076b443..568c80c 100644 --- a/src/modules/ad/core/domain/ad.factory.ts +++ b/src/modules/ad/core/domain/ad.factory.ts @@ -81,6 +81,7 @@ export class AdFactory { seatsProposed: ad.seatsProposed, seatsRequested: ad.seatsRequested, strict: ad.strict, + pause: ad.pause, waypoints: ad.waypoints, points: points!, driverDistance, diff --git a/src/modules/ad/core/domain/ad.types.ts b/src/modules/ad/core/domain/ad.types.ts index 5c0b1b1..2bdd4b0 100644 --- a/src/modules/ad/core/domain/ad.types.ts +++ b/src/modules/ad/core/domain/ad.types.ts @@ -15,6 +15,7 @@ export interface UserAd { seatsProposed: number; seatsRequested: number; strict: boolean; + pause: boolean; waypoints: PointProps[]; } @@ -29,12 +30,12 @@ export interface AdProps { seatsProposed: number; seatsRequested: number; strict: boolean; + pause: boolean; driverDuration?: number; driverDistance?: number; passengerDuration?: number; passengerDistance?: number; waypoints: PointProps[]; - pause: boolean; points: PointProps[]; fwdAzimuth: number; backAzimuth: number; @@ -52,8 +53,8 @@ export interface CreateAdProps { seatsProposed: number; seatsRequested: number; strict: boolean; - waypoints: PointProps[]; pause: boolean; + waypoints: PointProps[]; driverDuration?: number; driverDistance?: number; passengerDuration?: number; diff --git a/src/modules/ad/tests/integration/ad.fixtures.ts b/src/modules/ad/tests/integration/ad.fixtures.ts index c777374..9eb48b1 100644 --- a/src/modules/ad/tests/integration/ad.fixtures.ts +++ b/src/modules/ad/tests/integration/ad.fixtures.ts @@ -54,6 +54,7 @@ function createAdPropsDefaults(): CreateAdProps { seatsProposed: 1, seatsRequested: 1, strict: false, + pause: false, waypoints: [], points: [], driverDuration: 0,