mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
parseInt
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user