Skip to content

Commit

Permalink
fix auth header
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Sep 4, 2024
1 parent ecfc519 commit d620e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wrike_ist/azure.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(some-> js/process .-env .-AZURE_TOKEN .trim))

(defn- headers []
{:Authorization (str "Basic " (js/btoa (str ":" (azure-token))))
{:Authorization (str "Basic " (js/btoa (str (azure-token))))
:Content-Type "application/json"})

(defn parse-body
Expand Down Expand Up @@ -55,7 +55,7 @@
(reduced (js/Promise.reject :present))
ok))
(js/Promise.resolve)
(get (parse-body response) "data"))))
(get (parse-body response) "comments"))))
(.then (fn add-link-comment [& _]
(let [comment-text (link-html details)
params (clj->js {:text comment-text
Expand Down

0 comments on commit d620e4d

Please sign in to comment.