diff --git a/packages/api/router/orgWebsite/query.forContactInfo.handler.ts b/packages/api/router/orgWebsite/query.forContactInfo.handler.ts index 2a9c1409b39..21b891328c3 100644 --- a/packages/api/router/orgWebsite/query.forContactInfo.handler.ts +++ b/packages/api/router/orgWebsite/query.forContactInfo.handler.ts @@ -20,7 +20,7 @@ const whereId = (input: TForContactInfoSchema, isSingleLoc?: boolean): Prisma.Or // } } case isIdFor('orgLocation', input.parentId): { - return { locations: { every: { location: { id: input.parentId, ...isPublic } } } } + return { locations: { some: { location: { id: input.parentId, ...isPublic } } } } } default: {