From 926fbcfd9cb01d13536af5a1d092d643ca898584 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 11 Mar 2026 23:20:41 +0100 Subject: [PATCH] Fix `/api/videos/:id?with=show` with multi-entry videos --- api/src/controllers/videos.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/controllers/videos.ts b/api/src/controllers/videos.ts index 12e61a4f..9fbd762a 100644 --- a/api/src/controllers/videos.ts +++ b/api/src/controllers/videos.ts @@ -207,6 +207,7 @@ const videoRelations = { .where(eq(videos.pk, entryVideoJoin.videoPk)), ), ) + .limit(1) .as("show"); }, previous: ({ languages }: { languages: string[] }) => {