fix lint
parent
36ad89d04c
commit
f03d75d9d8
|
@ -37,9 +37,11 @@ decorationRouter.route('/')
|
|||
.get((req, res, next) => {
|
||||
const filter = {};
|
||||
if (req.query.fractFilter) {
|
||||
filter.fraction = { "$in" : req.query.fractFilter
|
||||
filter.fraction = {
|
||||
'$in': req.query.fractFilter
|
||||
.toUpperCase()
|
||||
.split(',')};
|
||||
.split(','),
|
||||
};
|
||||
}
|
||||
if (req.query.q) {
|
||||
filter.name = {$regex: req.query.q, $options: 'i'};
|
||||
|
|
Loading…
Reference in New Issue