cuestionario temporal

This commit is contained in:
2020-11-23 13:56:58 -06:00
parent 5df8e9e00d
commit c5fce65f3e
8 changed files with 180 additions and 13 deletions
@@ -10,9 +10,7 @@ const cartaTermino = async (body, file) => {
})
.then((res) => {
if (!res) throw new Error('Este servicio no existe.');
if (res.cartaTermino) throw new Error('Ya se subio la carta de termino.');
switch (res.idStatus) {
case 4:
case 8:
@@ -10,9 +10,7 @@ const informeGlobal = async (body, file) => {
})
.then((res) => {
if (!res) throw new Error('Este servicio no existe.');
if (res.informeGlobal) throw new Error('Ya se subio el informe global.');
switch (res.idStatus) {
case 4:
case 9:
+1 -1
View File
@@ -9,7 +9,7 @@ const registro = async (body) => {
let idServicio = validar.validarId(body.idServicio);
let password = '';
let correo = {};
let idUsuario = null;
let idUsuario;
return Servicio.findOne({
where: { idServicio },