fix(daily-webhook): use BookingRepository instead of direct prisma call (#29541)
This commit is contained in:
1 parent
70a883b191
commit
561cf889ab
2 files changed
+37
-32
No files matched your search
@@ -2137,4 +2137,37 @@ export class BookingRepository implements IBookingRepository {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async findByIdWithUserAndEventType(bookingId: number) {
|
||||
return await this.prismaClient.booking.findUnique({
|
||||
where: {
|
||||
id: bookingId,
|
||||
},
|
||||
select: {
|
||||
...bookingMinimalSelect,
|
||||
uid: true,
|
||||
location: true,
|
||||
isRecorded: true,
|
||||
eventTypeId: true,
|
||||
eventType: {
|
||||
select: {
|
||||
teamId: true,
|
||||
parentId: true,
|
||||
canSendCalVideoTranscriptionEmails: true,
|
||||
customReplyToEmail: true,
|
||||
},
|
||||
},
|
||||
user: {
|
||||
select: {
|
||||
id: true,
|
||||
timeZone: true,
|
||||
email: true,
|
||||
name: true,
|
||||
locale: true,
|
||||
destinationCalendar: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user