feat: filter bookings by event type (#9011)
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
df7870bfce
commit
ada8e19715
3 files changed
+59
-34
No files matched your search
@@ -102,6 +102,15 @@ export const getHandler = async ({ ctx, input }: GetOptions) => {
|
||||
},
|
||||
],
|
||||
},
|
||||
eventTypeIds: {
|
||||
AND: [
|
||||
{
|
||||
eventTypeId: {
|
||||
in: input.filters?.eventTypeIds,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
const filtersCombined: Prisma.BookingWhereInput[] =
|
||||
|
||||
Reference in new issue
Block a user