mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 02:52:32 +02:00
feat: small fixes
This commit is contained in:
@@ -185,6 +185,9 @@ module.exports = function (redisClient, module) {
|
||||
};
|
||||
|
||||
module.sortedSetScores = function (key, values, callback) {
|
||||
if (!values.length) {
|
||||
return setImmediate(callback, null, []);
|
||||
}
|
||||
helpers.execKeyValues(redisClient, 'batch', 'zscore', key, values, function (err, scores) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
|
||||
Reference in New Issue
Block a user