Skip to content

Commit

Permalink
Merge pull request #59 from TeamDMU/develop
Browse files Browse the repository at this point in the history
[Release] version 1.2.0 Hotfix
  • Loading branch information
GiJungPark authored Nov 10, 2024
2 parents 3f83e28 + 1e85eec commit a5840da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
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

0 comments on commit a5840da

Please sign in to comment.