feat: add hidden flag to specials

This commit is contained in:
Hördle Bot
2025-12-06 01:35:01 +01:00
parent bc2c0bad59
commit 71b8e98f23
8 changed files with 98 additions and 14 deletions

View File

@@ -43,7 +43,9 @@ export default async function Home({
const genres = await prisma.genre.findMany({
where: { active: true },
});
const specials = await prisma.special.findMany();
const specials = await prisma.special.findMany({
where: { hidden: false },
});
// Sort in memory
genres.sort((a, b) => getLocalizedValue(a.name, locale).localeCompare(getLocalizedValue(b.name, locale)));