fix: Correct clubhouse API for task status

- Use the right URL for updating tasks
- Use the right key and value for marking task status
This commit is contained in:
Griffin Smith 2019-03-06 11:58:50 -05:00
parent f657a4c7fa
commit 3ee1fcc71c

View file

@ -751,7 +751,7 @@ allows manually passing a clubhouse ID and list of org-element plists to write"
(listp attrs)))
(org-clubhouse-request
"PUT"
(format "stories/%d" story-id)
(format "stories/%d/tasks/%d" story-id task-id)
:data
(json-encode attrs)))
@ -822,7 +822,7 @@ element."
(org-clubhouse-update-task-internal
story-id
(string-to-number task-id)
:done done?)
:complete (if done? 't :json-false))
(message "Successfully marked clubhouse task status as %s"
(if done? "complete" "incomplete")))))))