pasar de status 2 a status 3 listo

This commit is contained in:
2020-11-22 21:05:50 -06:00
parent 788ac0aab9
commit 2ae79c3962
4 changed files with 79 additions and 5 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ const registro = async (body) => {
throw new Error(
'Este servicio se encuentra cancelado o rechazado. No se puede aceptar hasta que se corriga lo necesario.'
);
else if (res.idStatus !== 1)
else if (res.idStatus > 1)
throw new Error('Este servicio ya paso por el Registro.');
let password = encriptar.generarPassword();