From 1cc26c5985a293e90b35e184d157777f5e579930 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 2 Mar 2025 22:27:41 +0100 Subject: [PATCH] Fix typescript compilation --- api/src/controllers/shows/logic.ts | 1 + api/tests/movies/get-all-movies-with-null.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/api/src/controllers/shows/logic.ts b/api/src/controllers/shows/logic.ts index 5b37f15d..75353bf9 100644 --- a/api/src/controllers/shows/logic.ts +++ b/api/src/controllers/shows/logic.ts @@ -184,6 +184,7 @@ export async function getShow( const show = { ...ret, ...translation, + kind: ret.kind as any, ...(ot?.preferOriginal && { ...(ot.poster && { poster: ot.poster }), ...(ot.thumbnail && { thumbnail: ot.thumbnail }), diff --git a/api/tests/movies/get-all-movies-with-null.test.ts b/api/tests/movies/get-all-movies-with-null.test.ts index 5e03cb56..30d5932f 100644 --- a/api/tests/movies/get-all-movies-with-null.test.ts +++ b/api/tests/movies/get-all-movies-with-null.test.ts @@ -41,6 +41,7 @@ describe("with a null value", () => { airDate: null, originalLanguage: null, externalId: {}, + studios: [], }); });