package tech.easyflow.chatlog.schedule;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import tech.easyflow.chatlog.service.ChatSyncService;

@Component
public class ChatStartupRunner implements ApplicationRunner {

    private final ChatSyncService chatSyncService;

    public ChatStartupRunner(ChatSyncService chatSyncService) {
        this.chatSyncService = chatSyncService;
    }

    @Override
    public void run(ApplicationArguments args) {
        chatSyncService.startupCheck();
    }
}
