Files
calendar/packages/features/ee/round-robin/utils/bookingSelect.ts
T
Anik Dhabal BabuandGitHub 943c1a3c03 fix: events not removed from the previous host calendar due to wrong credentials usage (#23756)
* fix: events not removed from the previous host claendar

* fix test

* Update roundRobinManualReassignment.test.ts
2025-09-11 04:03:50 +00:00

40 lines
850 B
TypeScript

import type { Prisma } from "@calcom/prisma/client";
import { credentialForCalendarServiceSelect } from "@calcom/prisma/selects/credential";
export const bookingSelect = {
uid: true,
title: true,
startTime: true,
endTime: true,
userId: true,
customInputs: true,
responses: true,
description: true,
location: true,
eventTypeId: true,
destinationCalendar: true,
user: {
select: {
id: true,
name: true,
username: true,
email: true,
locale: true,
timeZone: true,
timeFormat: true,
destinationCalendar: true,
credentials: {
select: credentialForCalendarServiceSelect,
},
},
},
attendees: true,
references: true,
metadata: true,
iCalUID: true,
};
export type BookingSelectResult = Prisma.BookingGetPayload<{
select: typeof bookingSelect;
}>;