From 9d792b8c6e2f46d35e8cec728e13f568a8f23094 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Thu, 19 Mar 2020 15:16:38 -0400 Subject: Don't pass owner_ids if we're not claiming If we're not claiming a story, don't pass owner_ids to the API at all, rather than passing it as null, which causes the API to return an error. --- org-clubhouse.el | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'org-clubhouse.el') diff --git a/org-clubhouse.el b/org-clubhouse.el index 95a59bff90c1..3be5b4098395 100644 --- a/org-clubhouse.el +++ b/org-clubhouse.el @@ -911,11 +911,16 @@ element." is not set") nil)))) - (org-clubhouse-update-story-internal - clubhouse-id - :workflow_state_id workflow-state-id - :owner_ids (when update-assignee? - (list (org-clubhouse-whoami)))) + (if update-assignee? + (org-clubhouse-update-story-internal + clubhouse-id + :workflow_state_id workflow-state-id + :owner_ids (if update-assignee? + (list (org-clubhouse-whoami)) + (list))) + (org-clubhouse-update-story-internal + clubhouse-id + :workflow_state_id workflow-state-id)) (message (if update-assignee? "Successfully claimed story and updated clubhouse status to \"%s\"" -- cgit 1.4.1