mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix mapper error
This commit is contained in:
@@ -107,8 +107,8 @@ export class EventMapper {
|
||||
"DayOfWeek": null,
|
||||
"Month": null,
|
||||
"LastOccurrence": null,
|
||||
"frequency": dto.eventRecurrence?.frequency,
|
||||
"until": dto.eventRecurrence?.until
|
||||
"frequency": dto?.eventRecurrence?.frequency,
|
||||
"until": dto?.eventRecurrence?.until
|
||||
},
|
||||
"Attachments": dto.attachments.map( e => ({
|
||||
"Id": e.id,
|
||||
|
||||
@@ -170,8 +170,8 @@ export class EventToApproveDetailsMapper {
|
||||
ApplicationId: e.applicationId,
|
||||
})),
|
||||
eventRecurrence: {
|
||||
frequency: dto.eventRecurrence?.frequency,
|
||||
until: dto.eventRecurrence?.until
|
||||
frequency: dto?.eventRecurrence?.frequency,
|
||||
until: dto?.eventRecurrence?.until
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ const EventRecurrenceSchema = z.object({
|
||||
LastOccurrence: null,
|
||||
frequency: z.number(),
|
||||
until: z.string()
|
||||
});
|
||||
}).nullable()
|
||||
|
||||
|
||||
export const EventOutputDTOSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user