diff --git a/packages/mongoose-filter-query/src/index.js b/packages/mongoose-filter-query/src/index.js index f99c22f..c544ed4 100644 --- a/packages/mongoose-filter-query/src/index.js +++ b/packages/mongoose-filter-query/src/index.js @@ -3,7 +3,7 @@ import { mapFilters } from "./utils"; const mongooseFilterQuery = (req, res, next) => { try { req.query.filter = mapFilters(req.query.filter) ?? {} - mapFilters(req.query.filterl2) + mapFilters(req.query.secondaryFilter) if (req.query.sort) { Object.keys(req.query.sort).forEach((key) => { const dir = req.query.sort[key];