Skip to content

Commit

Permalink
feat: 수동 대시보드 업데이트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sectionr0 committed Sep 9, 2023
1 parent 0ba1c24 commit d22e4c2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import lombok.RequiredArgsConstructor
import org.springframework.http.ResponseEntity
import org.springframework.scheduling.annotation.Scheduled
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

Expand All @@ -26,6 +27,11 @@ class DashBoardController(
}

@Scheduled(cron = "0 0 0 * * *")
fun updateStatusBoardScheduled() {
dashBoardService.updateStatusBoard()
}

@PostMapping("/update")
fun updateStatusBoard() {
dashBoardService.updateStatusBoard()
}
Expand Down

0 comments on commit d22e4c2

Please sign in to comment.