From 4aea1d7fe1d397dac0f6aaf737fce93986ab7da7 Mon Sep 17 00:00:00 2001 From: Peter Beverloo Date: Fri, 15 Mar 2024 22:25:44 +0000 Subject: [PATCH] Only select a single display --- app/api/display/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/display/route.ts b/app/api/display/route.ts index ce74d0cf..fa0482c1 100644 --- a/app/api/display/route.ts +++ b/app/api/display/route.ts @@ -136,6 +136,7 @@ async function display(request: Request, props: ActionProps): Promise .on(activitiesLocationsJoin.locationId.equals(tDisplays.displayLocationId)) .leftJoin(eventsJoin) .on(eventsJoin.eventId.equals(tDisplays.displayEventId)) + .where(tDisplays.displayId.equals(displayId)) .select({ identifier: tDisplays.displayIdentifier, label: tDisplays.displayLabel,