fix: filtering events bug in bookings page (#13447)
* fix: filtering events bug in bookings page * fix: handle edge case if we change hosts in event-settings/assignment * update: handled edge case --------- Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
a0451e34c1
commit
e377997d49
1 file changed
+26
-6
@@ -147,15 +147,35 @@ async function getBookings({
|
||||
userIds: {
|
||||
AND: [
|
||||
{
|
||||
eventType: {
|
||||
users: {
|
||||
some: {
|
||||
id: {
|
||||
in: filters?.userIds,
|
||||
OR: [
|
||||
{
|
||||
eventType: {
|
||||
hosts: {
|
||||
some: {
|
||||
userId: {
|
||||
in: filters?.userIds,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
userId: {
|
||||
in: filters?.userIds,
|
||||
},
|
||||
},
|
||||
{
|
||||
eventType: {
|
||||
users: {
|
||||
some: {
|
||||
id: {
|
||||
in: filters?.userIds,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user