From 57493dc8853907596e5ecd99cd085ce3dbd16119 Mon Sep 17 00:00:00 2001 From: fgs21 <fgs21@inf.ufpr.br> Date: Thu, 1 Feb 2024 09:25:58 -0300 Subject: [PATCH] [FIX] Adding rqf.parse() and rqf.build() in root route in newPnad --- src/libs/routes_v1/newPnad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/routes_v1/newPnad.js b/src/libs/routes_v1/newPnad.js index deb97187..a9ae2b5d 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') -- GitLab