Check data from redis scan is an array

This commit is contained in:
Daniel García Aubert 2017-03-29 20:04:19 +02:00
parent 56429ffebf
commit 09d5a14ade

View File

@ -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;