diff --git a/api/src/controllers/profiles/history.ts b/api/src/controllers/profiles/history.ts index 4f18908f..e024dcc6 100644 --- a/api/src/controllers/profiles/history.ts +++ b/api/src/controllers/profiles/history.ts @@ -377,7 +377,7 @@ export const historyH = new Elysia({ tags: ["profiles"] }) userId: sub, progressQ: historyProgressQ, relations: ["show"], - })) as Entry[]; + })) as (Entry & { show: Show })[]; return createPage(items, { url, sort, limit, headers }); }, diff --git a/api/src/controllers/seed/insert/entries.ts b/api/src/controllers/seed/insert/entries.ts index 6569aa73..3e58fa69 100644 --- a/api/src/controllers/seed/insert/entries.ts +++ b/api/src/controllers/seed/insert/entries.ts @@ -59,6 +59,7 @@ export const insertEntries = record( const { translations, videos, video, ...entry } = seed; return { ...entry, + content: entry.kind !== "extra" ? entry.content : "story", showPk: show.pk, slug: generateSlug(show.slug, seed), thumbnail: enqueueOptImage(imgQueue, { diff --git a/api/tests/series/nextup.test.ts b/api/tests/series/nextup.test.ts index ce34f600..3353d745 100644 --- a/api/tests/series/nextup.test.ts +++ b/api/tests/series/nextup.test.ts @@ -28,7 +28,7 @@ beforeAll(async () => { }); const miaEntrySlug = `${madeInAbyss.slug}-s1e13`; -const miaNextEntrySlug = `${madeInAbyss.slug}-sp3`; +const miaNextEntrySlug = "made-in-abyss-dawn-of-the-deep-soul"; describe("nextup", () => { it("Watchlist populates nextup", async () => { diff --git a/front/src/ui/details/header.tsx b/front/src/ui/details/header.tsx index c398f11a..90668bb3 100644 --- a/front/src/ui/details/header.tsx +++ b/front/src/ui/details/header.tsx @@ -37,7 +37,6 @@ import { HR, IconButton, IconFab, - Image, ImageBackground, LI, Link, diff --git a/front/src/ui/details/staff.tsx b/front/src/ui/details/staff.tsx index 41a2fa39..066dcfd4 100644 --- a/front/src/ui/details/staff.tsx +++ b/front/src/ui/details/staff.tsx @@ -3,6 +3,7 @@ import { View } from "react-native"; import { type KImage, Role } from "~/models"; import { Container, H2, Link, P, Poster, Skeleton, SubP } from "~/primitives"; import { InfiniteGrid, type QueryIdentifier } from "~/query"; +import { cn } from "~/utils"; import { EmptyView } from "../empty-view"; export const CharacterCard = ({