Skip to content

Commit

Permalink
🐛 Fix: change daily problem strategy to get weekly problem
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Oct 1, 2024
1 parent bb1aea8 commit 02d8db7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ProblemCrawlingScheduler {
private final DailyProblemAdditionStrategy dailyProblemAdditionStrategy;
private final DiscordWebhookService discordWebhookService;

@Scheduled(cron = "0 55 23 * * TUE") // 코스 변경 요청을 처리한 후, user problem을 할당합니다.
@Scheduled(cron = "0 20 00 * * WED") // 코스 변경 요청을 처리한 후, user problem을 할당합니다.
public void scheduleAddProblemsForThisWeek() {
try {
String result = dailyProblemAdditionStrategy.addProblems();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ public String addProblems() throws IOException {
}

@Override
// TODO: 방학되면 다시 findDaily로 수정
public Algorithm getAlgorithm() {
return algorithmService.findDailyAlgorithm();
return algorithmService.findWeeklyAlgorithm();
}

@Override
Expand Down

0 comments on commit 02d8db7

Please sign in to comment.