fix: use hasEvery instead of hasSome in mii list tags filter

This commit is contained in:
trafficlunar 2025-04-10 12:43:18 +01:00
parent fc3632380a
commit 7119313b7d

View file

@ -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 =