mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-12 04:02:27 +02:00
check value
This commit is contained in:
@@ -287,6 +287,9 @@ module.exports = function(db, module) {
|
||||
}
|
||||
|
||||
var result = values.map(function(value) {
|
||||
if (!value) {
|
||||
return null;
|
||||
}
|
||||
var index = sortedSet.indexOf(value.toString());
|
||||
return index !== -1 ? index : null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user