Skip to content

Commit

Permalink
fix progress task
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Nov 15, 2023
1 parent 37809db commit 318370e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/wrike_ist/wrike.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,14 @@

(defn progress-task
[{:keys [permalink]} wanted-status]
(when (not-empty wanted-status)
(.then
(find-task permalink)
#(update-task-status % {:wanted-status wanted-status}))))
(if-not (= "-" wanted-status)
(.then
(find-task permalink)
#(update-task-status % {:wanted-status wanted-status
:wanted-group "In Progress"}))
(do
(js/console.log "Skipping `closed` transition because it's set to \"-\"")
(js/Promise.resolve))))

(defn complete-task
[{:keys [permalink]} wanted-status]
Expand Down

0 comments on commit 318370e

Please sign in to comment.