actualizacion del ticket
This commit is contained in:
@@ -10,9 +10,11 @@ const validarTicket = async (body) => {
|
||||
.then((res) => {
|
||||
if (!res) throw new Error('Este folio no existe');
|
||||
idUsuario = res.idUsuario;
|
||||
return Inscripcion.findOne({
|
||||
where: { folio: body.folio, validacion: 1 },
|
||||
});
|
||||
if (body.validacion == 1) {
|
||||
return Inscripcion.findOne({
|
||||
where: { folio: body.folio, validacion: 1 },
|
||||
});
|
||||
}
|
||||
})
|
||||
.then((res) => {
|
||||
if (res) throw new Error('Este folio ya fue validado');
|
||||
@@ -23,7 +25,6 @@ const validarTicket = async (body) => {
|
||||
{
|
||||
where: {
|
||||
folio: body.folio,
|
||||
validacion: 2,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user