usuarios solo trae usuarios con contraseña
This commit is contained in:
parent
5e7507e78b
commit
6ba36ac6bd
@ -4,7 +4,7 @@ import {
|
||||
NotFoundException,
|
||||
} from '@nestjs/common';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import { FindOperator, Like, Repository } from 'typeorm';
|
||||
import { FindOperator, IsNull, Like, Not, Repository } from 'typeorm';
|
||||
import { Institucion } from '../institucion/entity/institucion.entity';
|
||||
import { InstitucionCarrera } from '../institucion-carrera/entity/institucion-carrera.entity';
|
||||
import { TipoUsuario } from '../tipo-usuario/entity/tipo-usuario.entity';
|
||||
@ -102,11 +102,12 @@ export class UsuarioService {
|
||||
usuario?: string;
|
||||
}) {
|
||||
const busqueda: {
|
||||
password: FindOperator<any>;
|
||||
institucionCarrera: { carrera?: Carrera; institucion?: Institucion };
|
||||
nombre?: FindOperator<string>;
|
||||
tipoUsuario?: TipoUsuario;
|
||||
usuario?: FindOperator<string>;
|
||||
} = { institucionCarrera: {} };
|
||||
} = { password: Not(IsNull()), institucionCarrera: {} };
|
||||
const carrera = filtros.id_carrera
|
||||
? await this.institucionCarreraService.findCarreraByIdCarrera(
|
||||
parseInt(filtros.id_carrera),
|
||||
|
Loading…
Reference in New Issue
Block a user