Update event.ts (#1280)

This commit is contained in:
Nathan authored and GitHub committed 2021-12-09 12:25:38 +00:00
1 parent 8d4b3c1c2c
commit 1890d5daf7
1 file changed
+2 -5
+2 -5
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,
},
},
},