fix: Duplicate calls syncing Calendar integrations (#26858)

* fix: Duplicate calls syncing Calendar integrations

* fix: TS error in handler

* Minor fixup

* Set cacheUpdatedAt at correct depth of array

* Import RouterOutputs
This commit is contained in:
Alex van Andel authored and GitHub committed 2026-01-15 00:21:40 -03:00
1 parent a708e088c9
commit 1dd2652080
8 files changed
+164 -133

No files matched your search

@@ -1408,16 +1408,6 @@ export class EventTypeRepository {
};
}
static getSelectedCalendarsFromUser<TSelectedCalendar extends { eventTypeId: number | null }>({
user,
eventTypeId,
}: {
user: UserWithSelectedCalendars<TSelectedCalendar>;
eventTypeId: number;
}) {
return user.allSelectedCalendars.filter((calendar) => calendar.eventTypeId === eventTypeId);
}
async findByIdForUserAvailability({ id }: { id: number }) {
const eventType = await this.prismaClient.eventType.findUnique({
where: { id },