Compare interger instead of strings
This commit is contained in:
parent
34b352a0a6
commit
2edfd1fad5
@ -43,7 +43,8 @@ QueueSeeker.prototype._seek = function (client, cursor, users, attemps, callback
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var hasMore = currentCursor[0] !== '0' && attemps < MAX_SCAN_ATTEMPTS;
|
var hasMore = (parseInt(currentCursor[0], 10) > 0) && (attemps < MAX_SCAN_ATTEMPTS);
|
||||||
|
|
||||||
if (!hasMore) {
|
if (!hasMore) {
|
||||||
return callback(null, users);
|
return callback(null, users);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user