diff --git a/src/libs/routes_v1/newPnad.js b/src/libs/routes_v1/newPnad.js index 720f3646fea2f2884410678466924c76f7b8ab1a..c5756a4d297046917c931b21a89527f0a240ebf2 100644 --- a/src/libs/routes_v1/newPnad.js +++ b/src/libs/routes_v1/newPnad.js @@ -297,16 +297,6 @@ rqf.addField({ foreign: 'cod_uf', foreignTable: 'pnad_novo' } -}).addValue({ - name: 'illiteracy', - table: 'pnad_novo', - tableField: 'analfabetismo', - resultField: 'illiteracy_id', - where: { - relation: '=', - type: 'integer', - field: 'analfabetismo' - } }).addValue({ name: 'years_of_study', table: 'pnad_novo', @@ -367,6 +357,16 @@ rqf.addField({ type: 'integer', field: 'nivel_etapa_modalidade_freq' } +}).addValue({ + name: 'illiteracy', + table: 'pnad_novo', + tableField: 'analfabetismo', + resultField: 'illiteracy_id', + where: { + relation: '=', + type: 'integer', + field: 'analfabetismo' + } }).addValue({ name: 'modality_shift', table: 'pnad_novo', @@ -518,6 +518,6 @@ PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { .order('pnad_novo.ano_ref') console.log(req.sql.toString()) next(); -}, query, id2str.transform(false),response('pnad_novo')); +}, query, id2str.transform(false), response('pnad_novo')); module.exports = PnadNovoApp;