|
|
@@ -639,15 +639,15 @@
|
|
|
[state graph-uuid & {:keys [target-user-uuids target-user-emails]}]
|
|
|
(go
|
|
|
(let [r (with-sub-data-from-ws state
|
|
|
- (<! (ws/<send! state {:req-id (get-req-id)
|
|
|
- :action "grant-access"
|
|
|
- :graph-uuid graph-uuid
|
|
|
- :target-user-uuids target-user-uuids
|
|
|
- :target-user-emails target-user-emails}))
|
|
|
-
|
|
|
+ (<! (ws/<send! state (cond-> {:req-id (get-req-id)
|
|
|
+ :action "grant-access"
|
|
|
+ :graph-uuid graph-uuid}
|
|
|
+ target-user-uuids (assoc :target-user-uuids target-user-uuids)
|
|
|
+ target-user-emails (assoc :target-user-emails target-user-emails))))
|
|
|
(<! (get-result-ch)))]
|
|
|
- (when-let [ex-message (:ex-message r)]
|
|
|
- (prn ::<grant-graph-access-to-others ex-message (:ex-data r))))))
|
|
|
+ (if-let [ex-message (:ex-message r)]
|
|
|
+ (prn ::<grant-graph-access-to-others ex-message (:ex-data r))
|
|
|
+ (prn ::<grant-graph-access-to-others :succ)))))
|
|
|
|
|
|
(defn <toggle-auto-push-client-ops
|
|
|
[state]
|