final
This commit is contained in:
@@ -45,7 +45,7 @@ export class InstitucionUsuarioService {
|
||||
.then((institucionUsuario) => {
|
||||
if (!institucionUsuario)
|
||||
throw new ConflictException(
|
||||
'Los datos que se ingrasaron no son correctos.',
|
||||
'Verificar sus datos, cualquier duda asistir al módulo PC PUMA.',
|
||||
);
|
||||
return institucionUsuario;
|
||||
});
|
||||
|
||||
@@ -94,22 +94,17 @@ export class UsuarioService {
|
||||
id_institucion_carrera,
|
||||
);
|
||||
|
||||
return this.findByUsuario(usuario, false)
|
||||
.then(async (existeUsuario) => {
|
||||
if (!existeUsuario || existeUsuario.password)
|
||||
throw new ConflictException(
|
||||
'Los datos que se ingrasaron no son correctos.',
|
||||
);
|
||||
return this.institucionUsuarioService.findByUsuarioInstitucionCarrera(
|
||||
existeUsuario,
|
||||
institucionCarrera,
|
||||
'cuenta',
|
||||
return this.findByUsuario(usuario, false).then(async (existeUsuario) => {
|
||||
if (!existeUsuario || existeUsuario.password)
|
||||
throw new ConflictException(
|
||||
'Verificar sus datos, cualquier duda asistir al módulo PC PUMA.',
|
||||
);
|
||||
})
|
||||
.then((institucionUsuario) => {
|
||||
if (!institucionUsuario) {
|
||||
}
|
||||
});
|
||||
return this.institucionUsuarioService.findByUsuarioInstitucionCarrera(
|
||||
existeUsuario,
|
||||
institucionCarrera,
|
||||
'cuenta',
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
async DGP(id_institucion: number, usuario: string, rfc: string) {
|
||||
@@ -131,7 +126,7 @@ export class UsuarioService {
|
||||
.then((usuario) => {
|
||||
if (!usuario || usuario.password)
|
||||
throw new NotFoundException(
|
||||
'Los datos que se ingrasaron no son correctos.',
|
||||
'Verificar sus datos, cualquier duda asistir al módulo PC PUMA.',
|
||||
);
|
||||
return this.institucionUsuarioService.findByUsuarioInstitucionCarrera(
|
||||
usuario,
|
||||
|
||||
Reference in New Issue
Block a user