Skip to content

Commit

Permalink
Fix: 코엑스용 gpt 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mummhy0811 committed Nov 28, 2023
1 parent ffc3a9e commit 2a5c529
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ private HttpEntity<ChatRequestDTO> getHttpEntity(ChatRequestDTO chatRequest) {
public String getKeyword(){
Random random = new Random();
random.setSeed(System.currentTimeMillis());
Long randomNum = (long) (random.nextInt(70) + 1);
Long randomNum = (long) (random.nextInt(99) + 1);
Optional<KeyWord> optionalKeyWord = iKeyWordRepository.findById(randomNum);
return optionalKeyWord.get().getKeyword();
}
@Scheduled(cron = "0 0 6 ? * TUE,THU,FRI,SUN", zone = "Asia/Seoul") //화 목 금 일
@Scheduled(cron = "0 0 0 ? * TUE,THU,FRI,SUN", zone = "Asia/Seoul") //화 목 금 일
public void getGroupQuestions() {
Date date = new Date();

Expand Down Expand Up @@ -144,7 +144,7 @@ public void getGroupQuestions() {
iGroupQuestionRepository.saveAll(newQuestionList);
}

@Scheduled(cron = "0 0 6 ? * MON,WED,SAT", zone = "Asia/Seoul") //월, 수, 토
@Scheduled(cron = "0 0 0 ? * MON,WED,SAT", zone = "Asia/Seoul") //월, 수, 토
public void getQuestions() {
Date date = new Date();

Expand Down

0 comments on commit 2a5c529

Please sign in to comment.