Microsoft sync added

This commit is contained in:
Milan Paunovic
2024-10-05 22:22:29 +02:00
parent 2234fac075
commit aed2333404
13 changed files with 865 additions and 1277 deletions

View File

@ -10,6 +10,8 @@ export async function fetchMicrosoftCalendarEvents(token, startDate, endDate) {
const data = await response.json();
console.log(data, startDate, endDate)
const microsoftEvents = [];
data?.value?.forEach((item) => {
const start = item.start;
@ -33,6 +35,8 @@ export async function fetchMicrosoftCalendarEvents(token, startDate, endDate) {
endDate: endDateTime,
allDay: item.isAllDay,
};
microsoftEvents.push(microsoftEvent);
});