home.py: move event_queue_id as queue_id to register_ret.

Simplify the page_params generation logic #3853
This commit is contained in:
fionabunny
2017-04-24 12:40:16 -07:00
committed by Tim Abbott
parent 27f07e6a99
commit 7db8c61aac
6 changed files with 9 additions and 9 deletions

View File

@@ -88,7 +88,7 @@ Socket.prototype = {
},
_get_next_req_id: function Socket__get_next_req_id() {
var req_id = page_params.event_queue_id + ':' + this._next_req_id_counter;
var req_id = page_params.queue_id + ':' + this._next_req_id_counter;
this._next_req_id_counter += 1;
return req_id;
},
@@ -214,7 +214,7 @@ Socket.prototype = {
$(function () {
var request = that._make_request('auth');
request.msg = {csrf_token: csrf_token,
queue_id: page_params.event_queue_id,
queue_id: page_params.queue_id,
status_inquiries: _.keys(that._requests)};
request.success = function (resp) {
that._is_authenticated = true;