Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Nov 15, 2023
1 parent 61b3f05 commit 29d6f0e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/wrike_ist/wrike.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
(fn [response]
(if-let [task (get-in (parse-body response) ["data" 0])]
(do
(.info js/console "find-task: Task found" (.-title task))
(.info js/console "find-task: Task found")
(js/Promise.resolve task))
(do
(.error js/console "find-task: Task not found")
Expand Down Expand Up @@ -67,15 +67,6 @@
[])))))))))


(defn fetch-wrike-task [task-id]
(let [task-url (str "https://www.wrike.com/api/v4/tasks/" task-id)
headers {:headers (headers)}
response (-> (http/get task-url headers)
parse-body)]
(if (= 200 (:status response))
response
nil)))

(defn fetch-folder-details [folder-id]
(let [uri (str "https://www.wrike.com/api/v4/folders/" folder-id)]
(-> (http/get uri {:headers (headers)})
Expand Down

0 comments on commit 29d6f0e

Please sign in to comment.