Check data from redis scan is an array
This commit is contained in:
parent
56429ffebf
commit
09d5a14ade
@ -36,7 +36,7 @@ QueueSeeker.prototype._seek = function (client, cursor, users, attemps, callback
|
|||||||
}
|
}
|
||||||
|
|
||||||
var queues = currentCursor[1];
|
var queues = currentCursor[1];
|
||||||
if (queues) {
|
if (Array.isArray(queues)) {
|
||||||
for (var i = 0; i < queues.length; i++) {
|
for (var i = 0; i < queues.length; i++) {
|
||||||
var user = queues[i].substr(QUEUE.PREFIX.length);
|
var user = queues[i].substr(QUEUE.PREFIX.length);
|
||||||
users[user] = true;
|
users[user] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user