diff --git a/src/hoarding/hoarding.service.ts b/src/hoarding/hoarding.service.ts index 3dc391c..ee3a5f9 100644 --- a/src/hoarding/hoarding.service.ts +++ b/src/hoarding/hoarding.service.ts @@ -8,14 +8,22 @@ import { MinioService } from 'src/minio/minio.service'; export class HoardingService { private readonly logger: Logger = new Logger(HoardingService.name); constructor(public readonly minioService: MinioService) { - // this.hoardChessStats(); + this.hoardChessStats(); } - // @Cron('0 0 1 * * *') - // async hoardChessStats() { - // await this.hoardUserChessStats('letmutchessplayer'); - // await this.hoardUserChessStats('archyotype'); - // } + @Cron('0 0 1 * * *') + async hoardChessStats() { + try { + await this.hoardUserChessStats('sentientcrouton'); + } catch (e) { + this.logger.error(e); + } + try { + await this.hoardUserChessStats('archyotype'); + } catch (e) { + this.logger.error(e); + } + } async hoardUserChessStats(user: string) { this.logger.log(`Hoarding chess.com stats for ${user}`);