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
|
(defn get-issue-events
|
||||||
[user repo issue-id]
|
[user repo issue-number]
|
||||||
(issues/issue-events user repo issue-id (self-auth-params)))
|
(issues/issue-events user repo issue-number (self-auth-params)))
|
||||||
|
|
||||||
(defn create-label
|
(defn create-label
|
||||||
[full-repo token]
|
[full-repo token]
|
||||||
|
|
|
@ -108,7 +108,8 @@
|
||||||
:current-user user
|
:current-user user
|
||||||
(ok {:user (dissoc
|
(ok {:user (dissoc
|
||||||
(users/get-user (:id user))
|
(users/get-user (:id user))
|
||||||
:token)}))
|
:token
|
||||||
|
:email)}))
|
||||||
(POST "/address" []
|
(POST "/address" []
|
||||||
:auth-rules authenticated?
|
:auth-rules authenticated?
|
||||||
:body-params [user-id :- Long, address :- String]
|
:body-params [user-id :- Long, address :- String]
|
||||||
|
|
|
@ -129,6 +129,7 @@
|
||||||
(stop-scheduler)
|
(stop-scheduler)
|
||||||
(log/debug "Starting scheduler thread")
|
(log/debug "Starting scheduler thread")
|
||||||
(while (get-thread-by-name scheduler-thread-name)
|
(while (get-thread-by-name scheduler-thread-name)
|
||||||
|
(log/debug "Waiting")
|
||||||
(Thread/sleep 1))
|
(Thread/sleep 1))
|
||||||
(every ms tasks))
|
(every ms tasks))
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,6 @@
|
||||||
(rf/dispatch [:load-bounties]))
|
(rf/dispatch [:load-bounties]))
|
||||||
|
|
||||||
(defn load-data []
|
(defn load-data []
|
||||||
(println "load-data")
|
|
||||||
(load-issues)
|
(load-issues)
|
||||||
(load-user))
|
(load-user))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue