Skip to content
Snippets Groups Projects
Commit f0b400c0 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Add null return

parent ca317fdc
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!43Integral time treatment
Pipeline #
module.exports = function admDependency(id) {
if (id == null)
return 'Não Disponivel';
return 'Não Disponível';
else if (id == false)
return 'Não';
else if (id == true)
......
......@@ -61,6 +61,7 @@ classApp.get('/period', (req, res, next) => {
// Returns integral-time avaible
classApp.get('/integral_time', (req, res, next) => {
req.result = [
{id: null, name: 'Não Disponível'},
{id: 0, name: 'Não'},
{id: 1, name: 'Sim'}
];
......
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