about summary refs log tree commit diff
path: root/org-clubhouse.el
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-03-06T16·58-0500
committerGriffin Smith <root@gws.fyi>2019-03-06T16·58-0500
commit3ee1fcc71c85fe7270b70c14b89078cef212b524 (patch)
tree111e092125e12446f45e91f1b28e360356c310b3 /org-clubhouse.el
parentf657a4c7fa88413c6121062ec38256353e4ad422 (diff)
fix: Correct clubhouse API for task status
- Use the right URL for updating tasks
- Use the right key and value for marking task status
Diffstat (limited to 'org-clubhouse.el')
-rw-r--r--org-clubhouse.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/org-clubhouse.el b/org-clubhouse.el
index c3f69f32e835..808ce7fd5f24 100644
--- a/org-clubhouse.el
+++ b/org-clubhouse.el
@@ -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")))))))