Skip to content

Commit

Permalink
fix: 개발용 api 조건 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Aug 18, 2024
1 parent b9510a5 commit 22436b3
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ class DevDiscordWebhookResource(
@PostMapping("/api/dev/v1/discord-webhooks/daily-noti")
suspend fun sendDailyNoti(
@RequestHeader("X-HERO-DEV-TOKEN") token: String,
@RequestParam fromDateTime: LocalDateTime,
@RequestParam toDateTime: LocalDateTime,
) = devResource(token) {
val toDate = LocalDateTime.now()
val fromDate = LocalDateTime.now().minusHours(1)

statisticsJob.sendHeroStatistics("극락통계 테스트", fromDate, toDate)
statisticsJob.sendHeroStatistics(
title = "극락통계 테스트",
fromDate = fromDateTime,
toDate = toDateTime
)
}
}

0 comments on commit 22436b3

Please sign in to comment.