From 721c8ae85f2bb10bf29eb7322a8910372b8e73d0 Mon Sep 17 00:00:00 2001 From: fgs21 <fgs21@inf.ufpr.br> Date: Mon, 27 Nov 2023 11:10:23 -0300 Subject: [PATCH] [FIX] new_pnad fix 2 --- 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 e629c87a..c514da5d 100644 --- a/src/libs/routes_v1/newPnad.js +++ b/src/libs/routes_v1/newPnad.js @@ -137,7 +137,7 @@ rqf.addField({ // Return all cities PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { req.sql.from('pnad_novo') - .field('select(distinct(pnad_novo.projecao_populacao_por_niveis_geo))', 'name') + .field('sum(distinct(pnad_novo.projecao_populacao_por_niveis_geo))', 'name') .field('pnad_novo.ano_ref', 'year') .group('pnad_novo.ano_ref') next(); -- GitLab