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({ const users = await prisma.user.findMany({
where: { where: {
username: { in: selectedUserNames }, username: { in: selectedUserNames },
bookings: { eventTypes: {
some: { some: {
startTime: { id: eventTypeId,
gt: new Date(),
},
eventTypeId,
}, },
}, },
}, },