Fix/office365 api call (#3534)

* WIP fixes for handling office365 api call

* First working version microsoft api call handling

* Remove logs

* Clean up and improve function names

* Clean up

* Remove log

* Fix function missing its correct name

* Fix direct return of statement

* Cleanup

* Simplify with private fetcher

* Update CalendarService.ts

* Update getOfficeAppKeys.ts

Co-authored-by: zomars <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-07-27 19:12:42 +00:00
1 parent 7537ea5b91
commit 525ce0d075
9 files changed
+271 -109

No files matched your search

@@ -203,7 +203,7 @@ export async function getSchedule(
})
);
const workingHours = userSchedules.flatMap((s) => s.workingHours);
const workingHours = userSchedules?.flatMap((s) => s.workingHours);
const slots: Record<string, Slot[]> = {};
const availabilityCheckProps = {
@@ -279,6 +279,7 @@ export async function getSchedule(
`checkForAvailability took ${checkForAvailabilityTime}ms and executed ${checkForAvailabilityCount} times`
);
logger.silly(`Available slots: ${JSON.stringify(slots)}`);
return {
slots,
};