From 936ee20b0957e0106a458d25385bd5bd918e7e75 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sat, 23 Nov 2024 22:46:43 +0100 Subject: fix: fix kiosk handler --- src/backend/tubo/handler.clj | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/backend/tubo/handler.clj b/src/backend/tubo/handler.clj index ba0b8e6..96ce49c 100644 --- a/src/backend/tubo/handler.clj +++ b/src/backend/tubo/handler.clj @@ -57,9 +57,13 @@ [{{{:keys [kiosk-id service-id]} :path} :parameters {:strs [nextPage]} :query-params}] (response (apply api/get-kiosk - kiosk-id - (into (if service-id [service-id] []) - (if nextPage [nextPage] []))))) + (if kiosk-id + (into + [kiosk-id] + (into + (if service-id [service-id] []) + (if nextPage [nextPage] []))) + [service-id])))) (defn stream [{{:keys [url]} :path-params}] -- cgit v1.2.3