feat: small fixes

This commit is contained in:
Barış Soner Uşaklı
2018-12-17 18:56:09 -05:00
parent b2a74b4172
commit fef7e13c9e
8 changed files with 34 additions and 20 deletions

View File

@@ -382,9 +382,11 @@ SELECT o."_key" k,
module.sortedSetScores = function (key, values, callback) {
if (!key) {
return callback(null, null);
return setImmediate(callback, null, null);
}
if (!values.length) {
return setImmediate(callback, null, []);
}
values = values.map(helpers.valueToString);
query({