dejar de cancelar al minuto

This commit is contained in:
lemuel 2023-04-18 09:27:06 -06:00
parent ae770a4998
commit f5e768ca99

View File

@ -463,11 +463,14 @@ export class PrestamoService {
}
findAllActivosExpirados(): Promise<Prestamo[]> {
const ahora = moment();
if (this.add) ahora.add(this.add, 'h');
return this.informacionPrestamoView
.find({
where: {
activo: 1,
hora_max_recoger: LessThanOrEqual(moment().toDate()),
hora_max_recoger: LessThanOrEqual(ahora.toDate()),
id_status: 2,
},
})