Skip to content

Commit 5cdafb9

Browse files
authored
Merge pull request #20 from MT-TEAM-Org/epic/kafkachat
fix cron
2 parents 15b6aae + 7ac3bc7 commit 5cdafb9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/main/java/com/myteam/chat/currentChatDirectory/chatroom/ChatRoomSchedule.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ public class ChatRoomSchedule {
2626
private final ChatRoomReadService chatRoomReadService;
2727

2828
//매일 새벽 3시
29-
//@Scheduled(cron = "0 0 3 * * *")
30-
@Scheduled(cron = "0 * * * * *")
29+
@Scheduled(cron = "0 0 3 * * *")
3130
public void chatRoomCron() {
32-
log.info("cron started");
3331
//채팅방 토픽 삭제
3432
chatRoomReadService.findChatRoomYesterDay().forEach(chatRoom -> {
3533
topicManagementService.deleteTopic(TOPIC_PREFIX + chatRoom.getId());

0 commit comments

Comments
 (0)