about summary refs log tree commit diff
path: root/org-clubhouse.el
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-03-19T19·16-0400
committerGriffin Smith <root@gws.fyi>2020-03-19T19·16-0400
commit9d792b8c6e2f46d35e8cec728e13f568a8f23094 (patch)
tree00f7f696f31e2fec48d87228b5d79afba1dff2c1 /org-clubhouse.el
parent1722eac5f8e8264e72300e3956087c88aafbc36b (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.
Diffstat (limited to 'org-clubhouse.el')
-rw-r--r--org-clubhouse.el15
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\""