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();

View File

@@ -1,6 +1,6 @@
{
"name": "hoerdle",
"version": "0.1.6.28",
"version": "0.1.6.29",
"private": true,
"scripts": {
"dev": "next dev",