diff --git a/src/libs/routes_v1/newPnad.js b/src/libs/routes_v1/newPnad.js index deb97187b30318fa7e229d69c45831066b2676e9..a9ae2b5d236159756ba0bc8f278a28976cbc2360 100644 --- a/src/libs/routes_v1/newPnad.js +++ b/src/libs/routes_v1/newPnad.js @@ -303,7 +303,7 @@ rqf.addField({ } }, 'filter'); -PnadNovoApp.get('/', (req, res, next) => { +PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { req.sql.from('pnad_novo') .field('round(sum(pnad_novo.peso_domicilio_pessoas_com_cal), 0)', 'total') .field('pnad_novo.ano_ref', 'year')