Skip to content

Commit fbe039a

Browse files
committed
COMBUSTIVEL
1 parent 4d77948 commit fbe039a

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/controllers/orgao.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class OrgaoController {
1717
res,
1818
httpStatus.CONFLICT,
1919
T_PT.cft_nome,
20-
rows[0].id
20+
rows[0].id,
2121
);
2222
}
2323

@@ -48,7 +48,7 @@ class OrgaoController {
4848
res,
4949
httpStatus.CONFLICT,
5050
T_PT.cft_modulos,
51-
rows[0].id
51+
rows[0].id,
5252
);
5353
}
5454

@@ -58,7 +58,7 @@ class OrgaoController {
5858
data.ESCOLAR,
5959
data.SAUDE,
6060
data.ASSISTENCIA_SOCIAL,
61-
data.OUTROS,
61+
data.COMBUSTIVEL,
6262
]);
6363

6464
return ResponseController(res, httpStatus.CREATED, T_PT.cadastrado, id);
@@ -79,7 +79,7 @@ class OrgaoController {
7979
res,
8080
httpStatus.NOT_FOUND,
8181
T_PT.not_found,
82-
null
82+
null,
8383
);
8484
}
8585
return ResponseController(res, httpStatus.OK, T_PT.capturado, rows[0]);
@@ -111,7 +111,7 @@ class OrgaoController {
111111
data.ESCOLAR,
112112
data.SAUDE,
113113
data.ASSISTENCIA_SOCIAL,
114-
data.OUTROS,
114+
data.COMBUSTIVEL,
115115
idEntidade,
116116
]);
117117

src/lib/schemas/orgao.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const modulos = yup.object().shape({
1313
ESCOLAR: yup.number(),
1414
SAUDE: yup.number(),
1515
ASSISTENCIA_SOCIAL: yup.number(),
16-
OUTROS: yup.number(),
16+
COMBUSTIVEL: yup.number(),
1717
});
1818

1919
module.exports = {

src/models/orgao.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ module.exports = {
55
update: `UPDATE orgao
66
SET nome=$1, endereco=$2, bairro=$3, cidade=$4, email=$5, telefone=$6, status=$7 WHERE id=$8;`,
77

8-
modulos_liberados: `INSERT INTO modulos_liberados (id,id_orgao,escolar,saude,assistencia_social,outros)
8+
modulos_liberados: `INSERT INTO modulos_liberados (id,id_orgao,escolar,saude,assistencia_social,combustivel)
99
values ($1,$2,$3,$4,$5,$6);`,
1010

11-
update_modulos_liberados: `UPDATE modulos_liberados SET escolar=$1,saude=$2,assistencia_social=$3,outros=$4 where id_orgao = $5;`,
11+
update_modulos_liberados: `UPDATE modulos_liberados SET escolar=$1,saude=$2,assistencia_social=$3,combustivel=$4 where id_orgao = $5;`,
1212

1313
getModulosLiberados: `SELECT escolar, saude, combustivel from modulos_liberados where id_orgao = $1;`,
1414

0 commit comments

Comments
 (0)