From 2a5c529f6c99385fd89d19432493bacc5b2f68fc Mon Sep 17 00:00:00 2001 From: mummhy0811 Date: Tue, 28 Nov 2023 23:56:25 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=BD=94=EC=97=91=EC=8A=A4=EC=9A=A9=20g?= =?UTF-8?q?pt=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/onestep/server/service/question/GptService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/onestep/server/service/question/GptService.java b/src/main/java/com/onestep/server/service/question/GptService.java index 7308019..267fe25 100644 --- a/src/main/java/com/onestep/server/service/question/GptService.java +++ b/src/main/java/com/onestep/server/service/question/GptService.java @@ -48,11 +48,11 @@ private HttpEntity 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 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(); @@ -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();