modulo motivo final

This commit is contained in:
xXpuma99Xx
2022-06-24 02:00:17 -05:00
parent 293550f749
commit 3493a5ef54
5 changed files with 12 additions and 10 deletions
+2 -3
View File
@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
import { Cron, SchedulerRegistry } from '@nestjs/schedule';
import { Cron } from '@nestjs/schedule';
import { EquipoService } from '../equipo/equipo.service';
import { MultaService } from '../multa/multa.service';
import { PrestamoService } from '../prestamo/prestamo.service';
@@ -7,13 +7,12 @@ import { PrestamoService } from '../prestamo/prestamo.service';
@Injectable()
export class CronService {
constructor(
private schedulerRegistry: SchedulerRegistry,
private equipoService: EquipoService,
private multaService: MultaService,
private prestamoService: PrestamoService,
) {}
@Cron('0 */5 8-20 * * 1-5', { name: 'prestamos_desactivacion' })
@Cron('0 */1 8-20 * * 1-5', { name: 'prestamos_desactivacion' })
desactivarPrestamos() {
return this.prestamoService.desactivarPrestamos();
}