Skip to content

Commit

Permalink
remove plainText param
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Sep 4, 2024
1 parent 6f5c725 commit 2ad5bf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wrike_ist/azure.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
(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
[response]
Expand Down Expand Up @@ -54,8 +55,7 @@
(get (parse-body response) "comments"))))
(.then (fn add-link-comment [& _]
(let [comment-text (link-html details)
params (clj->js {:text comment-text
:plainText false})]
params (clj->js {:text comment-text})]
(js/console.log (str "add-link-comment: params:" (js/JSON.stringify params)))
(-> (http/post uri {:headers (headers)
:body (js/JSON.stringify params)})
Expand Down

0 comments on commit 2ad5bf9

Please sign in to comment.