check value

This commit is contained in:
barisusakli
2014-10-02 18:57:15 -04:00
parent 4c70a0da4f
commit c72c876b04

View File

@@ -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;
});