diff --git a/src/libs/routes_v1/newPnad.js b/src/libs/routes_v1/newPnad.js index cf277eecd179b6772396420305882b59d94f65eb..e629c87a73dc0f869f16bbc8922b86e41c9b19e1 100644 --- a/src/libs/routes_v1/newPnad.js +++ b/src/libs/routes_v1/newPnad.js @@ -38,7 +38,7 @@ const cache = require('apicache').options({ debug: config.debug, statusCodes: {i let rqf = new ReqQueryFields(); -cityApp.use(cache('15 day')); +PnadNovoApp.use(cache('15 day')); rqf.addField({ name: 'filter', @@ -135,7 +135,7 @@ rqf.addField({ }, 'filter'); // Return all cities -cityApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { +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('pnad_novo.ano_ref', 'year')