Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] version 1.2.0 Hotfix #59

Merged
merged 5 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CrawlingScheduler (
universityNoticeCrawlingService.addRecentUniversityNotice()
}

@Scheduled(cron = "0 0 8,20 * * *")
@Scheduled(cron = "0 */10 8,20 * * *")
fun dietAndScheduleCrawling() {
dietCrawlingService.updateToRecentDiet()
scheduleCrawlingService.updateToRecentSchedule()
Expand Down
2 changes: 2 additions & 0 deletions dmforu-api/src/main/kotlin/com/dmforu/api/ApiApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.dmforu.api
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
import java.util.*

@ConfigurationPropertiesScan
@SpringBootApplication(
Expand All @@ -16,5 +17,6 @@ import org.springframework.boot.runApplication
class ApiApplication

fun main(args: Array<String>) {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"))
runApplication<ApiApplication>(*args)
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class OldNoticeController(
summary = "[구버전] 대학 공지 API",
description = "대학 공지를 출력한다.<br>Page, Size의 default 값은 1, 20이다."
)
@GetMapping("/api/v1/dmu/notice/universityNotice")
@GetMapping("/api/v1/dmu/universityNotice")
fun getOldUniversityNotice(
@RequestParam(name = "page", defaultValue = "1") page: Int,
@RequestParam(name = "size", defaultValue = "20") size: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OldNoticeControllerTest : ControllerTestSupport() {

// when then
mockMvc.perform(
get("/api/v1/dmu/notice/universityNotice")
get("/api/v1/dmu/universityNotice")
.param("page", "1")
.param("size", "20")
.contentType(APPLICATION_JSON)
Expand Down Expand Up @@ -124,7 +124,7 @@ class OldNoticeControllerTest : ControllerTestSupport() {

// when then
mockMvc.perform(
get("/api/v1/dmu/notice/universityNotice")
get("/api/v1/dmu/universityNotice")
.contentType(APPLICATION_JSON)
)
.andExpect(status().isOk())
Expand Down
Loading