Fix: Versteckte Specials werden nicht mehr in Navigationsleiste angezeigt

This commit is contained in:
Hördle Bot
2025-12-07 12:40:50 +01:00
parent 2bf21fd75f
commit 7999d63e6d
2 changed files with 4 additions and 2 deletions

View File

@@ -73,7 +73,9 @@ export default async function GenrePage({ params }: PageProps) {
// Sort
genres.sort((a, b) => getLocalizedValue(a.name, locale).localeCompare(getLocalizedValue(b.name, locale)));
const specials = await prisma.special.findMany();
const specials = await prisma.special.findMany({
where: { hidden: false },
});
specials.sort((a, b) => getLocalizedValue(a.name, locale).localeCompare(getLocalizedValue(b.name, locale)));
const now = new Date();