errores pequeños

This commit is contained in:
xXpuma99Xx
2021-11-29 00:46:38 -06:00
parent fd2878c514
commit b30b7ec57b
5 changed files with 10 additions and 11 deletions
@@ -11,7 +11,7 @@ const responsableUpdate = async (body) => {
if (!res)
throw new Error('No existe este responsable en la base de datos.');
if (res.idTipoUsuario !== 2)
throw new Error('No es un usuaior de tipo responasble.');
throw new Error('Este usuario no es un responsable de programa.');
if (body.correo) {
const yaUsado = await Usuario.findOne({
where: { usuario: body.correo, idUsuario: { [Op.not]: idUsuario } },