diff --git a/dmforu-admin/src/main/kotlin/com/dmforu/admin/scheduler/CrawlingScheduler.kt b/dmforu-admin/src/main/kotlin/com/dmforu/admin/scheduler/CrawlingScheduler.kt index 47ace4d..4f23af4 100644 --- a/dmforu-admin/src/main/kotlin/com/dmforu/admin/scheduler/CrawlingScheduler.kt +++ b/dmforu-admin/src/main/kotlin/com/dmforu/admin/scheduler/CrawlingScheduler.kt @@ -20,7 +20,7 @@ class CrawlingScheduler ( universityNoticeCrawlingService.addRecentUniversityNotice() } - @Scheduled(cron = "0 */10 8,20 * * *") + @Scheduled(cron = "0 */10 8-20 * * *") fun dietAndScheduleCrawling() { dietCrawlingService.updateToRecentDiet() scheduleCrawlingService.updateToRecentSchedule() diff --git a/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/OldRegisterSubscribeRequest.kt b/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/OldRegisterSubscribeRequest.kt index fd45f02..2e4e6ea 100644 --- a/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/OldRegisterSubscribeRequest.kt +++ b/dmforu-api/src/main/kotlin/com/dmforu/api/controller/old/request/OldRegisterSubscribeRequest.kt @@ -6,16 +6,16 @@ import com.dmforu.domain.subscribe.Subscribe data class OldRegisterSubscribeRequest( val token: String, val department: String, - val topic: List + val topic: List? ) { fun toSubscribe(): Subscribe { val isDepartmentSubscribed = department.isNotBlank() - val areKeywordsSubscribed = topic.isNotEmpty() + val areKeywordsSubscribed = topic?.isNotEmpty() ?: false return Subscribe.of( token = token, department = department, - keywords = topic, + keywords = topic ?: listOf(), isDepartmentSubscribed = isDepartmentSubscribed, isKeywordSubscribed = areKeywordsSubscribed ) diff --git a/dmforu-infrastructure/fcm/src/main/resources/.DS_Store b/dmforu-infrastructure/fcm/src/main/resources/.DS_Store new file mode 100644 index 0000000..74e5493 Binary files /dev/null and b/dmforu-infrastructure/fcm/src/main/resources/.DS_Store differ