listo escolares
This commit is contained in:
@@ -39,6 +39,11 @@ const escolares = async (body) => {
|
||||
.then((res) => (usuario = res));
|
||||
} else if (usuario.password)
|
||||
throw new Error('Este número de cuenta ya fue registrado.');
|
||||
delete usuario.dataValues.password;
|
||||
delete usuario.dataValues.telefono;
|
||||
delete usuario.dataValues.telefono;
|
||||
delete usuario.dataValues.multa;
|
||||
delete usuario.dataValues.idTipoUsuario;
|
||||
return usuario;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user