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