Update event.ts (#1280)

experiment/web3^2
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
1 changed files with 2 additions and 5 deletions

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,
},
},
},