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.
This commit is contained in:
Griffin Smith 2020-03-19 15:16:38 -04:00
parent 1722eac5f8
commit 9d792b8c6e

View file

@ -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\""