Update event.ts (#1280)
parent
8d4b3c1c2c
commit
1890d5daf7
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue