From 3ee1fcc71c85fe7270b70c14b89078cef212b524 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Wed, 6 Mar 2019 11:58:50 -0500 Subject: fix: Correct clubhouse API for task status - Use the right URL for updating tasks - Use the right key and value for marking task status --- org-clubhouse.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org-clubhouse.el') 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"))))))) -- cgit 1.4.1