fix: calendar cache date ranges (#18237)

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
Omar LópezandKeith Williams authored and GitHub committed 2024-12-17 19:20:19 +00:00
1 parent 4df4383e1e
commit ae7bbaf414
2 files changed
+3 -3

No files matched your search

@@ -724,9 +724,9 @@ export default class GoogleCalendarService implements Calendar {
async fetchAvailabilityAndSetCache(selectedCalendars: IntegrationCalendar[]) {
const parsedArgs = {
/** Expand the start date to the start of the month */
timeMin: getTimeMax(),
timeMin: getTimeMin(),
/** Expand the end date to the end of the month */
timeMax: getTimeMin(),
timeMax: getTimeMax(),
items: selectedCalendars.map((sc) => ({ id: sc.externalId })),
};
const data = await this.fetchAvailability(parsedArgs);