feat: filter bookings by event type (#9011)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
mohammed hussamandPeer Richelsen authored and GitHub committed 2023-05-29 17:01:17 +01:00
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[] =