closes #2289, replace Infinity with '+inf'

This commit is contained in:
barisusakli
2014-11-07 19:40:41 -05:00
parent dcba272dc5
commit c56b9aafff
6 changed files with 8 additions and 8 deletions

View File

@@ -167,10 +167,10 @@ module.exports = function(db, module) {
}
var scoreQuery = {};
if (min !== -Infinity) {
if (min !== '-inf') {
scoreQuery.$gte = min;
}
if (max !== Infinity) {
if (max !== '+inf') {
scoreQuery.$lte = max;
}