mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
create weakly event
This commit is contained in:
@@ -41,7 +41,9 @@ const OrganizerSchema = z.object({
|
||||
const EventRecurrenceSchema = z.object({
|
||||
Type: z.number().optional(),
|
||||
Day: z.any().optional(),
|
||||
DayOfWeek: z.any(),
|
||||
daysOfWeek: z.object({
|
||||
day: z.number()
|
||||
}).array(),
|
||||
Month: z.any(),
|
||||
LastOccurrence: z.any().optional(),
|
||||
frequency: z.number().optional(),
|
||||
|
||||
@@ -178,6 +178,7 @@ export class AgendaDataRepositoryService {
|
||||
recurrence: {
|
||||
frequency: this.utils.eventRecurence(eventData.EventRecurrence.frequency),
|
||||
until:((eventData.EventRecurrence.until === "") ? this.utils.addOneHourToIsoString(eventData.EndDate.toISOString()) : eventData.EventRecurrence.until),
|
||||
daysOfWeek: eventData.EventRecurrence.daysOfWeek || []
|
||||
},
|
||||
organizerId: SessionStore.user.UserId,
|
||||
isAllDayEvent: eventData.IsAllDayEvent,
|
||||
@@ -211,6 +212,7 @@ export class AgendaDataRepositoryService {
|
||||
recurrence: {
|
||||
frequency: this.utils.eventRecurence(eventData.EventRecurrence.frequency),
|
||||
until: ((eventData.EventRecurrence.until === "") ? this.utils.addOneHourToIsoString(eventData.EndDate.toISOString()) : eventData.EventRecurrence.until),
|
||||
daysOfWeek: eventData.EventRecurrence.daysOfWeek || []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ export class EventMapper {
|
||||
"EventRecurrence": {
|
||||
"Type": -1,
|
||||
"Day": null,
|
||||
"DayOfWeek": null,
|
||||
"daysOfWeek": dto.eventRecurrence?.daysOfWeek.map(e => e.day),
|
||||
"Month": null,
|
||||
"LastOccurrence": null,
|
||||
"frequency": dto?.eventRecurrence?.frequency,
|
||||
|
||||
Reference in New Issue
Block a user