Skip to content

Commit

Permalink
show data object
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Nov 14, 2023
1 parent 06ba116 commit 2c74184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wrike_ist/wrike.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

(defn get-folder-id
[folder-names]
(let [uri (str "https://www.wrike.com/api/v4/folders?descendants=false")]
(let [uri (str "https://www.wrike.com/api/v4/folders")]
(-> (http/get uri {:headers (headers)})
(.then parse-body)
(.then (fn [response]
Expand All @@ -57,7 +57,7 @@
matching-folder-ids (->> data
(filter #(contains? folder-names (get % "title")))
(map #(get % "id")))]
(.info js/console (str "get-folder-id: Data object: " data))
;; (.info js/console (str "get-folder-id: Data object: " data))
(if (seq matching-folder-ids)
(do
(.info js/console (str "get-folder-id: Matching folder IDs found: " matching-folder-ids))
Expand Down

0 comments on commit 2c74184

Please sign in to comment.