token y cambios al reporte

This commit is contained in:
Andres2908
2022-02-22 16:31:40 -06:00
parent 34a741bd41
commit 0a9ae79747
9 changed files with 58 additions and 35 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ const validarTicket = async (body) => {
.then((res) => {
console.log(body.validacion);
if (body.validacion === 0)
throw new Error('El administrador a declinado el ticket');
throw new Error(
'El administrador a declinado el ticket, ya que los datos no coinciden.'
);
})
.then((res) => ({
message: '¡ El ticket a sido validado de forma correcta !',