This commit is contained in:
barisusakli
2014-10-03 14:14:41 -04:00
parent 73d358edc5
commit 33780e6fdb
6 changed files with 67 additions and 5 deletions

View File

@@ -26,6 +26,9 @@ module.exports = function(db, module) {
};
function sortedSetAddBulk(key, scores, values, callback) {
if (!scores.length || !values.length) {
return callback();
}
if (scores.length !== values.length) {
return callback(new Error('[[error:invalid-data]]'));
}