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))) (listp attrs)))
(org-clubhouse-request (org-clubhouse-request
"PUT" "PUT"
(format "stories/%d" story-id) (format "stories/%d/tasks/%d" story-id task-id)
:data :data
(json-encode attrs))) (json-encode attrs)))
@ -822,7 +822,7 @@ element."
(org-clubhouse-update-task-internal (org-clubhouse-update-task-internal
story-id story-id
(string-to-number task-id) (string-to-number task-id)
:done done?) :complete (if done? 't :json-false))
(message "Successfully marked clubhouse task status as %s" (message "Successfully marked clubhouse task status as %s"
(if done? "complete" "incomplete"))))))) (if done? "complete" "incomplete")))))))