wip musician latency badge
This commit is contained in:
parent
5144309ff4
commit
10908623a4
|
|
@ -190,7 +190,7 @@
|
|||
var latency;
|
||||
$(document).one('user_latency_update', function(e, latencyResp){
|
||||
latency = latencyResp['users'][0];
|
||||
//logger.debug("bindUserLatencyUpdate", latency)
|
||||
logger.debug("bindUserLatencyUpdate", latency)
|
||||
if(latency['user_id'] === userId){
|
||||
showLatencyBadge(latency)
|
||||
}
|
||||
|
|
@ -199,6 +199,7 @@
|
|||
|
||||
function bindUserLatencyFail(){
|
||||
$(document).one('user_latency_fail', function(e, failedUserIds){
|
||||
logger.debug("bindUserLatencyFail", failedUserIds)
|
||||
if(_.contains(failedUserIds, userId) || failedUserIds === userId){
|
||||
showFailedLatencyBadge(userId)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -956,9 +956,9 @@ class ApiUsersController < ApiController
|
|||
my_client_id: 'unknown',
|
||||
users: user_ids
|
||||
}.to_json
|
||||
|
||||
logger.debug(">>>>>>>>>>>>>>>>>>>>>>> before sending")
|
||||
response = http.request(req)
|
||||
|
||||
logger.debug(">>>>>>>>>>>>>>>>>>>>>>> #{response.inspect}")
|
||||
if response.is_a?(Net::HTTPOK) || response.is_a?(Net::HTTPSuccess)
|
||||
render json: response.body, status: 200
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue