fix(ad pause): fix code after merge of update ad

This commit is contained in:
Fanch 2024-05-16 11:32:57 +02:00 committed by Fanch
parent d937a84182
commit b52644ee3b
3 changed files with 5 additions and 2 deletions

View File

@ -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,

View File

@ -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;

View File

@ -54,6 +54,7 @@ function createAdPropsDefaults(): CreateAdProps {
seatsProposed: 1,
seatsRequested: 1,
strict: false,
pause: false,
waypoints: [],
points: [],
driverDuration: 0,