diff options
author | Griffin Smith <root@gws.fyi> | 2020-03-19T19·16-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-03-19T19·16-0400 |
commit | 9d792b8c6e2f46d35e8cec728e13f568a8f23094 (patch) | |
tree | 00f7f696f31e2fec48d87228b5d79afba1dff2c1 | |
parent | 1722eac5f8e8264e72300e3956087c88aafbc36b (diff) |
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.
-rw-r--r-- | org-clubhouse.el | 15 |
1 files changed, 10 insertions, 5 deletions
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\"" |