mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-21 22:56:29 -04:00
Add entries count in series
This commit is contained in:
@@ -45,6 +45,9 @@ const BaseSerie = t.Object({
|
||||
),
|
||||
|
||||
nextRefresh: t.String({ format: "date-time" }),
|
||||
entriesCount: t.Integer({
|
||||
description: "The number of episodes in this serie",
|
||||
}),
|
||||
|
||||
externalId: ExternalId(),
|
||||
});
|
||||
@@ -82,7 +85,7 @@ export const FullSerie = t.Intersect([
|
||||
export type FullMovie = Prettify<typeof FullSerie.static>;
|
||||
|
||||
export const SeedSerie = t.Intersect([
|
||||
t.Omit(BaseSerie, ["kind", "nextRefresh"]),
|
||||
t.Omit(BaseSerie, ["kind", "nextRefresh", "entriesCount"]),
|
||||
t.Object({
|
||||
slug: t.String({ format: "slug" }),
|
||||
translations: TranslationRecord(
|
||||
|
||||
Reference in New Issue
Block a user