Skip to content

Commit

Permalink
check main function correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Nov 15, 2023
1 parent 9baaecc commit a30cd3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wrike_ist/wrike.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
(.then parse-body)
(.then (fn [response]
(let [title (-> response
(get-in ["data" 0 "title"]))]
(get-in ["data" 0 "title"]))]
(.info js/console (str "Folder ID: " folder-id " Title: " title))
(let [lowercase-folder-names (map clojure.string/lower-case folder-names)
parent-ids (-> response
(get-in ["data" 0 "parentIds"])
(or []))]
(.info js/console (str "Parent IDs: " parent-ids))
(if (and #_{:clj-kondo/ignore [:not-empty?]}
(not (empty? title))
(not (empty? title))
(some #(str/starts-with? title %) lowercase-folder-names))
(do
(.info js/console (str "Match found for folder: " title))
Expand Down Expand Up @@ -138,7 +138,7 @@
(.catch
#(if (= % :present)
(.log js/console (str "link-pr: PR link already in comments"))
(js/Promise.reject %)))))))
(js/Promise.resolve %)))))))
(.then
(fn [_]
(js/Promise.all [check-valid-task-promise])))
Expand Down

0 comments on commit a30cd3a

Please sign in to comment.