From 4b035bd50aa67a4181083cef5411092b8212c2de Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Mon, 12 Oct 2020 16:02:45 -0700 Subject: [PATCH] Back off the radius-nm check. Somehow it gets set to 0 when not in config. --- src/main/lemondronor/advisorycircular.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/lemondronor/advisorycircular.cljs b/src/main/lemondronor/advisorycircular.cljs index 5cb7174..1529553 100644 --- a/src/main/lemondronor/advisorycircular.cljs +++ b/src/main/lemondronor/advisorycircular.cljs @@ -110,7 +110,7 @@ (defn adsbx-url [{:keys [url lat lon radius-nm rapid-api?]}] - (if (or lat lon radius-nm) + (if (or lat lon) (do (when-not (and lat lon radius-nm) (throw (js/Error. "Need all of :lat, :lon, and :radius-nm"))) @@ -129,7 +129,7 @@ (defn adsbx-headers [{:keys [url api-key api-whitelist rapid-api?]}] - (cond-> (if rapid-api? + (cond-> (if rapid-api? {:x-rapidapi-key api-key :x-rapidapi-host (:host (c-url/url url)) :useQueryString true}