|
|
|
@ -112,6 +112,7 @@ module.exports = function(db, module) {
|
|
|
|
|
|
|
|
|
|
|
|
module.sortedSetCard = function(key, callback) {
|
|
|
|
module.sortedSetCard = function(key, callback) {
|
|
|
|
db.collection('objects').count({_key:key}, function(err, count) {
|
|
|
|
db.collection('objects').count({_key:key}, function(err, count) {
|
|
|
|
|
|
|
|
count = parseInt(count, 10);
|
|
|
|
callback(err, count ? count : 0);
|
|
|
|
callback(err, count ? count : 0);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|