mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
fix mongo lex callback
This commit is contained in:
@@ -592,7 +592,13 @@ module.exports = function (db, module) {
|
||||
});
|
||||
};
|
||||
|
||||
function sortedSetLex(method, sort, key, min, max, start, count, callback) {
|
||||
function sortedSetLex(key, min, max, sort, start, count, callback) {
|
||||
if (!callback) {
|
||||
callback = start;
|
||||
start = 0;
|
||||
count = 0;
|
||||
}
|
||||
|
||||
var query = {_key: key, value: {}};
|
||||
|
||||
if (min !== '-') {
|
||||
@@ -697,7 +703,6 @@ module.exports = function (db, module) {
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
module.sortedSetIntersectCard = function (keys, callback) {
|
||||
if (!Array.isArray(keys) || !keys.length) {
|
||||
return callback(null, 0);
|
||||
|
||||
Reference in New Issue
Block a user