diff --git a/src/libs/routes_v1/newPnad.js b/src/libs/routes_v1/newPnad.js index e2e5f91246bf6680bd464a19ed4bc9903a83ceb1..578e0d35e9a129a16301890d43aabe2ff29fbddc 100644 --- a/src/libs/routes_v1/newPnad.js +++ b/src/libs/routes_v1/newPnad.js @@ -57,7 +57,7 @@ rqf.addField({ type: 'integer', field: 'id' } -}).addValue({ +}).addValueToField({ name: 'state', table: 'estado', tableField: ['nome', 'id'], @@ -72,7 +72,7 @@ rqf.addField({ foreign: 'cod_uf', foreignTable: 'pnad_novo' } -}).addValue({ +}, 'filter').addValue({ name: 'state_not', table: 'estado', tableField: ['nome', 'id'], @@ -189,10 +189,10 @@ rqf.addField({ field: 'faixa_rendimento' } }).addValue({ - name: 'sex', + name: 'gender', table: 'pnad_novo', tableField: 'sexo', - resultField: 'sex', + resultField: 'gender', where: { relation: '=', type: 'integer',