diff --git a/src/libs/routes_v1/studentsReceivingAidTax.js b/src/libs/routes_v1/studentsReceivingAidTax.js index 16547bfda95c5dee75a9aa262d35a3a003469bed..2910f434f18a0d3db52707d0c1b9b312c485570c 100644 --- a/src/libs/routes_v1/studentsReceivingAidTax.js +++ b/src/libs/routes_v1/studentsReceivingAidTax.js @@ -120,8 +120,6 @@ studentsReceivingAidTaxApp.get('/cap_code', (req, res, next) => { }); } } - req.result.push({id: 99, name: id2str.capitalCode(99)}); - next(); }, response('cap_code')); @@ -586,6 +584,9 @@ function whereCondition(req) { where += `pnad_novo.faixa_rendimento_aux_tx is not null`; } + if (dims && dims.includes("cap_code")){ + where += `pnad_novo.cod_cap <> 99`; + } return where; }