Fix types

This commit is contained in:
Zoe Roux 2026-04-04 11:49:58 +02:00
parent 18150fc5d1
commit 885e409bc8
No known key found for this signature in database
5 changed files with 4 additions and 3 deletions

View File

@ -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 });
},

View File

@ -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, {

View File

@ -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 () => {

View File

@ -37,7 +37,6 @@ import {
HR,
IconButton,
IconFab,
Image,
ImageBackground,
LI,
Link,

View File

@ -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 = ({