import { Injectable } from '@nestjs/common';
import { Cron, CronExpression } from '@nestjs/schedule';
import { DownloadfileService } from 'src/document/downloadfile/downloadfile.service';

@Injectable()
export class ProcessDowonloadService {

    constructor( private downloadService: DownloadfileService ){}

    @Cron(CronExpression.EVERY_30_MINUTES)
    async handleCron() {
        await this.downloadService.remoteProcessFile();
    }
}
