mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-30 08:40:46 +00:00
update mtching mapper to handle empty schedules
This commit is contained in:
@@ -64,7 +64,7 @@ export class MatchingMapper
|
|||||||
toDate: entity.getProps().query.toDate,
|
toDate: entity.getProps().query.toDate,
|
||||||
schedule: entity
|
schedule: entity
|
||||||
.getProps()
|
.getProps()
|
||||||
.query.schedule.map((scheduleItem: ScheduleItem) => ({
|
.query.schedule?.map((scheduleItem: ScheduleItem) => ({
|
||||||
day: scheduleItem.day,
|
day: scheduleItem.day,
|
||||||
time: scheduleItem.time,
|
time: scheduleItem.time,
|
||||||
margin: scheduleItem.margin,
|
margin: scheduleItem.margin,
|
||||||
|
|||||||
Reference in New Issue
Block a user