fix mongo lex callback

v1.18.x
yariplus 8 years ago
parent e8823eab33
commit 472dd007d8

@ -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);

Loading…
Cancel
Save