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