fix edit event to approve

This commit is contained in:
Peter Maquiran
2024-11-07 10:51:58 +01:00
parent f0b4ada550
commit 652252e478
12 changed files with 39 additions and 25 deletions
@@ -189,16 +189,16 @@ export class AgendaDataRepositoryService {
let body;
if(typeof eventData?.Body == 'object') {
body = eventData?.Body?.Text
} else {
body = eventData?.Body
body = eventData.Body.Text
} else if (eventData?.Body) {
body = eventData.Body
}
let eventInput = {
userId: calendar.wxUserId,
ownerType: this.utils.selectedCalendarOwner(calendar.role),
subject: eventData.Subject,
body: eventData?.Body?.Text,
body: body,
location: eventData.Location,
startDate: this.utils.addOneHourToIsoString(eventData.StartDate),
endDate: this.utils.addOneHourToIsoString(eventData.EndDate),