Skip to content

Commit

Permalink
Merge pull request #106 from mummhy0811/main
Browse files Browse the repository at this point in the history
Fix: 코엑스용 gpt 코드 수정
  • Loading branch information
mummhy0811 authored Nov 28, 2023
2 parents ffc3a9e + 2a5c529 commit 10f3d0c
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 10f3d0c

Please sign in to comment.