aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/tubo/handler.clj10
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}]