busca las claves con año actual

This commit is contained in:
evenegas
2026-01-15 12:23:27 -06:00
parent f70aa0f92e
commit c0178301ae
+3 -1
View File
@@ -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}%`)
},
});
}