From dbdc063f2485c08865ae1f3e0b3e0d0ef80abf32 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Wed, 31 Jan 2024 00:02:47 +0200 Subject: [PATCH] Fix public tournament API join --- app/features/api-public/routes/tournament.$id.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/features/api-public/routes/tournament.$id.ts b/app/features/api-public/routes/tournament.$id.ts index dcdf36d30..3779155eb 100644 --- a/app/features/api-public/routes/tournament.$id.ts +++ b/app/features/api-public/routes/tournament.$id.ts @@ -24,7 +24,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => { .innerJoin("CalendarEvent", "CalendarEvent.tournamentId", "Tournament.id") .innerJoin( "CalendarEventDate", - "CalendarEventDate.id", + "CalendarEventDate.eventId", "CalendarEvent.id", ) .select(({ eb }) => [