cuestionario temporal
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user