From 09d5a14adee09656d2a49f23520aa550833ae073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 29 Mar 2017 20:04:19 +0200 Subject: [PATCH] Check data from redis scan is an array --- batch/pubsub/queue-seeker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch/pubsub/queue-seeker.js b/batch/pubsub/queue-seeker.js index 00d672f0..8e8bee66 100644 --- a/batch/pubsub/queue-seeker.js +++ b/batch/pubsub/queue-seeker.js @@ -36,7 +36,7 @@ QueueSeeker.prototype._seek = function (client, cursor, users, attemps, callback } var queues = currentCursor[1]; - if (queues) { + if (Array.isArray(queues)) { for (var i = 0; i < queues.length; i++) { var user = queues[i].substr(QUEUE.PREFIX.length); users[user] = true;