busca las claves con año actual
This commit is contained in:
@@ -232,11 +232,13 @@ export class ProgramaService {
|
||||
if (usuario.tipoUsuario.idTipoUsuario !== 2) {
|
||||
throw new Error('No es un usuario de tipo responsable');
|
||||
}
|
||||
const year = new Date().getFullYear().toString();
|
||||
|
||||
return this.programaRepo.find({
|
||||
return await this.programaRepo.find({
|
||||
where: {
|
||||
usuario: { idUsuario },
|
||||
activo: true,
|
||||
clavePrograma: Like(`${year}%`)
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user