From 6c9addee0fc6c866d76072879f563491acc10d79 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:09:42 -0500 Subject: [PATCH] update criteria --- packages/api/router/orgWebsite/query.forContactInfo.handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/router/orgWebsite/query.forContactInfo.handler.ts b/packages/api/router/orgWebsite/query.forContactInfo.handler.ts index 2a9c1409b3..21b891328c 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: {