Type extra & allow movie entries to specify a slug on seed

This commit is contained in:
2025-01-28 18:57:25 +01:00
parent cf59695e09
commit b1df97f767
6 changed files with 68 additions and 165 deletions

View File

@@ -20,6 +20,7 @@ const generateSlug = (showSlug: string, entry: SeedEntry): string => {
case "special":
return `${showSlug}-sp${entry.number}`;
case "movie":
if (entry.slug) return entry.slug;
return entry.order === 1 ? showSlug : `${showSlug}-${entry.order}`;
}
};