mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
dont return undefined from sortedSetsCard if keys is empty or falsy
This commit is contained in:
@@ -231,7 +231,7 @@ SELECT COUNT(*) c
|
||||
|
||||
module.sortedSetsCard = function (keys, callback) {
|
||||
if (!Array.isArray(keys) || !keys.length) {
|
||||
return callback();
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
query({
|
||||
|
||||
Reference in New Issue
Block a user