From c05ead44939084c277cab9cb145b59af0c0b0dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Sun, 23 Nov 2025 02:15:12 +0100 Subject: [PATCH] fix(api): include song count in specials list --- app/api/specials/route.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/api/specials/route.ts b/app/api/specials/route.ts index 148928e..67c8ac1 100644 --- a/app/api/specials/route.ts +++ b/app/api/specials/route.ts @@ -6,6 +6,11 @@ const prisma = new PrismaClient(); export async function GET() { const specials = await prisma.special.findMany({ orderBy: { name: 'asc' }, + include: { + _count: { + select: { songs: true } + } + } }); return NextResponse.json(specials); }