diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.js index e2bc988f81..c290b7000a 100644 --- a/src/database/mongo/sorted.js +++ b/src/database/mongo/sorted.js @@ -112,6 +112,7 @@ module.exports = function(db, module) { module.sortedSetCard = function(key, callback) { db.collection('objects').count({_key:key}, function(err, count) { + count = parseInt(count, 10); callback(err, count ? count : 0); }); };