mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-31 14:33:50 -04:00
Fix seasons entriesCount
computation
This commit is contained in:
parent
42cce837e4
commit
8513cc057b
@ -209,7 +209,11 @@ export async function updateAvailableCount(
|
|||||||
.select({ count: count() })
|
.select({ count: count() })
|
||||||
.from(entries)
|
.from(entries)
|
||||||
.where(
|
.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"),
|
||||||
|
),
|
||||||
)}`,
|
)}`,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user