Fix seasons entriesCount computation

This commit is contained in:
Zoe Roux 2025-07-14 23:19:32 +02:00
parent 42cce837e4
commit 8513cc057b

View File

@ -209,7 +209,11 @@ export async function updateAvailableCount(
.select({ count: count() })
.from(entries)
.where(
and(eq(entries.showPk, seasons.showPk), ne(entries.kind, "extra")),
and(
eq(entries.showPk, seasons.showPk),
eq(entries.seasonNumber, seasons.seasonNumber),
ne(entries.kind, "extra"),
),
)}`,
}),
})