Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Nov 15, 2023
1 parent ae58c85 commit 281deeb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/wrike_ist/wrike.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
(reduce
(fn [ok comment]
(if (.includes (get comment "text") pr-url)
(reduced (js/Promise.resolve true))
(reduced (js/Promise.reject :present))
ok))
(js/Promise.resolve)
(get (parse-body response) "data"))))
Expand All @@ -136,14 +136,15 @@
(.log js/console (str "link-pr: PR link sent to task"))
(js/Promise.resolve)))
(.catch
#(if (= % :present)
(.log js/console (str "link-pr: PR link already in comments"))
(js/Promise.resolve %)))))))
#(js/Promise.reject (if (= % :present)
(str "link-pr: PR link already in comments")
%)))))))
(.then
(fn [_]
(js/Promise.all [check-valid-task-promise])))
(.catch #(js/Promise.reject %)))))


(defn folder-statuses
[folder-id]
(let [uri (str "https://www.wrike.com/api/v4/folders/" folder-id)]
Expand Down

0 comments on commit 281deeb

Please sign in to comment.