diff --git a/src/modules/ad/matching.mapper.ts b/src/modules/ad/matching.mapper.ts index 700d260..351b469 100644 --- a/src/modules/ad/matching.mapper.ts +++ b/src/modules/ad/matching.mapper.ts @@ -64,7 +64,7 @@ export class MatchingMapper toDate: entity.getProps().query.toDate, schedule: entity .getProps() - .query.schedule.map((scheduleItem: ScheduleItem) => ({ + .query.schedule?.map((scheduleItem: ScheduleItem) => ({ day: scheduleItem.day, time: scheduleItem.time, margin: scheduleItem.margin,