fix: Managed event isn’t showing in the upcoming bookings when filtered (#14552)

Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
Amit Sharma
2024-04-22 10:55:26 -04:00
committed by GitHub
co-authored by Somay Chauhan Carina Wollendorfer Udit Takkar
parent b7e8b252d2
commit 20dfc34e70
@@ -73,13 +73,28 @@ export async function getBookings({
teamIds: {
AND: [
{
eventType: {
team: {
id: {
in: filters?.teamIds,
OR: [
{
eventType: {
team: {
id: {
in: filters?.teamIds,
},
},
},
},
},
{
eventType: {
parent: {
team: {
id: {
in: filters?.teamIds,
},
},
},
},
},
],
},
],
},
@@ -121,9 +136,22 @@ export async function getBookings({
eventTypeIds: {
AND: [
{
eventTypeId: {
in: filters?.eventTypeIds,
},
OR: [
{
eventTypeId: {
in: filters?.eventTypeIds,
},
},
{
eventType: {
parent: {
id: {
in: filters?.eventTypeIds,
},
},
},
},
],
},
],
},