diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-11-23 22:46:43 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-11-23 22:46:43 +0100 |
commit | 936ee20b0957e0106a458d25385bd5bd918e7e75 (patch) | |
tree | 47af9b3d9d1758d1b2e5d4f96258680af595a0ee /src/backend | |
parent | 85bbd1dd5704de6f3e8cb448418c2ac84996a385 (diff) |
fix: fix kiosk handler
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/tubo/handler.clj | 10 |
1 files changed, 7 insertions, 3 deletions
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}] |