Skip to content

Commit

Permalink
update criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Feb 20, 2024
1 parent a697ca8 commit 6c9adde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

1 comment on commit 6c9adde

@vercel
Copy link

@vercel vercel bot commented on 6c9adde Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.