From af612d6790fb25633c97b006f65099ca5ade721e Mon Sep 17 00:00:00 2001
From: Lucas Gabriel Lima <lgl15@inf.ufpr.br>
Date: Tue, 11 Jul 2017 10:18:46 -0300
Subject: [PATCH] revert changes

---
 src/libs/routes/pibpercapita.js | 4 ++--
 src/libs/routes/population.js   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libs/routes/pibpercapita.js b/src/libs/routes/pibpercapita.js
index a7acb267..9195806c 100644
--- a/src/libs/routes/pibpercapita.js
+++ b/src/libs/routes/pibpercapita.js
@@ -100,7 +100,7 @@ rqf.addField({
     name: 'income_level',
     table: 'ibge_pib',
     tableField: 'nivel_renda_per_capita',
-    resultField: 'id',
+    resultField: 'income_level_id',
     where: {
         relation: '=',
         type: 'integer',
@@ -117,6 +117,6 @@ pibpercapitaApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
   .order('ibge_pib.ano_censo')
 
    next();
-}, query, id2str.transform(true), response('pibpercapita'));
+}, query, id2str.transform(false), response('pibpercapita'));
 
 module.exports = pibpercapitaApp;
diff --git a/src/libs/routes/population.js b/src/libs/routes/population.js
index 8dd29a91..f7777c17 100644
--- a/src/libs/routes/population.js
+++ b/src/libs/routes/population.js
@@ -118,7 +118,7 @@ rqf.addField({
     name: 'city_size',
     table: 'ibge_populacao',
     tableField: 'porte',
-    resultField: 'id',
+    resultField: 'city_size_id',
     where: {
         relation: '=',
         type: 'integer',
@@ -136,6 +136,6 @@ populationApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
     .order('ibge_populacao.ano_censo')
 
    next();
-}, query, id2str.transform(true), response('population'));
+}, query, id2str.transform(false), response('population'));
 
 module.exports = populationApp;
-- 
GitLab