Do not expose user's email addresses to client side, rename parameter
This commit is contained in:
parent
c2065fa973
commit
b868996308
|
@ -186,8 +186,8 @@
|
|||
|
||||
|
||||
(defn get-issue-events
|
||||
[user repo issue-id]
|
||||
(issues/issue-events user repo issue-id (self-auth-params)))
|
||||
[user repo issue-number]
|
||||
(issues/issue-events user repo issue-number (self-auth-params)))
|
||||
|
||||
(defn create-label
|
||||
[full-repo token]
|
||||
|
|
|
@ -108,7 +108,8 @@
|
|||
:current-user user
|
||||
(ok {:user (dissoc
|
||||
(users/get-user (:id user))
|
||||
:token)}))
|
||||
:token
|
||||
:email)}))
|
||||
(POST "/address" []
|
||||
:auth-rules authenticated?
|
||||
:body-params [user-id :- Long, address :- String]
|
||||
|
|
|
@ -129,6 +129,7 @@
|
|||
(stop-scheduler)
|
||||
(log/debug "Starting scheduler thread")
|
||||
(while (get-thread-by-name scheduler-thread-name)
|
||||
(log/debug "Waiting")
|
||||
(Thread/sleep 1))
|
||||
(every ms tasks))
|
||||
|
||||
|
|
|
@ -179,7 +179,6 @@
|
|||
(rf/dispatch [:load-bounties]))
|
||||
|
||||
(defn load-data []
|
||||
(println "load-data")
|
||||
(load-issues)
|
||||
(load-user))
|
||||
|
||||
|
|
Loading…
Reference in New Issue