mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 03:21:18 +01:00
faster getTeasers
got rid of getPostIndices
This commit is contained in:
@@ -203,7 +203,7 @@ module.exports = function(db, module) {
|
||||
|
||||
module.sortedSetCard = function(key, callback) {
|
||||
if (!key) {
|
||||
return callback();
|
||||
return callback(null, 0);
|
||||
}
|
||||
db.collection('objects').count({_key: key}, function(err, count) {
|
||||
count = parseInt(count, 10);
|
||||
|
||||
Reference in New Issue
Block a user