fix: use hasEvery instead of hasSome in mii list tags filter
This commit is contained in:
parent
fc3632380a
commit
7119313b7d
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export default async function MiiList({ searchParams, userId, where }: Props) {
|
||||||
.map((tag) => tag.trim())
|
.map((tag) => tag.trim())
|
||||||
.filter((tag) => tag.length > 0)
|
.filter((tag) => tag.length > 0)
|
||||||
: [];
|
: [];
|
||||||
const whereTags = tagFilter.length > 0 ? { tags: { hasSome: tagFilter } } : undefined;
|
const whereTags = tagFilter.length > 0 ? { tags: { hasEvery: tagFilter } } : undefined;
|
||||||
|
|
||||||
// If the mii list is on a user's profile, don't query for the username
|
// If the mii list is on a user's profile, don't query for the username
|
||||||
const userInclude =
|
const userInclude =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue