Fix search results.

This commit is contained in:
Brian Cao 2023-08-11 11:37:01 -07:00
parent 937ff82d9f
commit cbed961d01
3 changed files with 25 additions and 23 deletions

View file

@ -104,7 +104,7 @@ export async function getTeams(
...((filterType === TEAM_FILTER_TYPES.all ||
filterType === TEAM_FILTER_TYPES['user:username']) && {
teamUser: {
every: {
some: {
role: ROLES.teamOwner,
user: {
username: {