Skip to content
Snippets Groups Projects
Commit cce4a300 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add more location_name(s)

parent aef1ec5e
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!27Implement UC201 - Select Location
Pipeline #
......@@ -228,8 +228,16 @@ enrollmentApp.get('/', (req, res, next) => {
if(req.dims.location) {
if(data.location_name === 1) {
data.location_name = 'Urbana';
} else {
} else if (data.location_name === 2) {
data.location_name = 'Rural';
} else if (data.location_name === 3) {
data.location_name = 'Área de Assentamento';
} else if (data.location_name === 4) {
data.location_name = 'Terra Indígena';
} else if (data.location_name === 5) {
data.location_name = 'Área Remanescente de Quilombos';
} else if (data.location_name === 6) {
data.location_name = 'Unidade de uso sustentável';
}
}
});
......
......@@ -11,9 +11,6 @@ const app = require(`${libs}/app`);
// Set default port: first environment variable PORT, then configuration and last 3000
app.set('port', process.env.PORT || config.port || 3000);
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
app.set('port', process.env.PORT || config.port || 3000);
// Set default ip: first environment variable IOP, then configuration and last '127.0.0.1'
app.set('ip', process.env.IP || config.ip || '127.0.0.1');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment