Skip to content

Commit

Permalink
πŸ”§ fix: alpha μ„œλ²„μ—μ„œλŠ” μ •μƒμ μœΌλ‘œ λ‰΄μŠ€ 데이터λ₯Ό λ°›μ•„μ˜¬ 수 있게 λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuo3o committed Dec 4, 2024
1 parent 8e2092a commit 0800aa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BE/src/news/news.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Injectable, InternalServerErrorException } from '@nestjs/common';
import { InjectDataSource } from '@nestjs/typeorm';
import { Cron } from '@nestjs/schedule';
import { DataSource, In } from 'typeorm';
import { NaverApiDomianService } from './naver-api-domian.service';
import { NewsApiResponse } from './interface/news-value.interface';
Expand Down Expand Up @@ -47,7 +48,7 @@ export class NewsService {
};
}

// @Cron('*/1 * * * *')
@Cron('*/15 8-16 * * 1-5')
async cronNewsData() {
const queryRunner = this.dataSource.createQueryRunner();

Expand Down

0 comments on commit 0800aa6

Please sign in to comment.