mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
Microsoft sync added
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user