Update event.ts (#1280)

This commit is contained in:
Nathan 2021-12-09 06:25:38 -06:00 committed by GitHub
parent 8d4b3c1c2c
commit 1890d5daf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,12 +140,9 @@ const getUserNameWithBookingCounts = async (eventTypeId: number, selectedUserNam
const users = await prisma.user.findMany({
where: {
username: { in: selectedUserNames },
bookings: {
eventTypes: {
some: {
startTime: {
gt: new Date(),
},
eventTypeId,
id: eventTypeId,
},
},
},