You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @bonnieli, I was able to calculate the availabilities using freequery and pushing the timeslots into an array, but I'm having some challenges returning this array out of the freebusy query to be sent to the front-end as a response.json().
Could you also look at my method of calculating the availabilities:
I started off by building an array of timeslots assuming full availability from 9 to 5 ([9:00, 10:00, ..., 4])
I then looped through the timeslots from that array and using the duration of the meeting as the start and end time respectively to query the freebusy API (eg. timeMin = 9 am, timeMax=9:59 (had to subtract 1 for the duration because I want to be able to set events that have only 1 hour time blocks available)
if the freebusy api returns an empty object, I then push that timeslot to a new array which I want to send to the front-end
Form the array of availabilities
return an array to the frontend
The text was updated successfully, but these errors were encountered: