diff --git a/server/routes/decorations.js b/server/routes/decorations.js index 89cfabc..bb310d0 100644 --- a/server/routes/decorations.js +++ b/server/routes/decorations.js @@ -37,11 +37,14 @@ decorationRouter.route('/') .get((req, res, next) => { const filter = {}; if (req.query.fractFilter) { - filter.fraction = req.query.fractFilter.toUpperCase(); + filter.fraction = { "$in" : req.query.fractFilter + .toUpperCase() + .split(',')}; } if (req.query.q) { filter.name = {$regex: req.query.q, $options: 'i'}; } + console.log(filter) DecorationModel.find(filter, {}, { sort: { fraction: 'asc', diff --git a/static/src/app/request/award/req-award.component.html b/static/src/app/request/award/req-award.component.html index 5e50a72..705b908 100644 --- a/static/src/app/request/award/req-award.component.html +++ b/static/src/app/request/award/req-award.component.html @@ -35,12 +35,10 @@