Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeh2926 committed Nov 12, 2024
1 parent 5ef42dc commit 052c54f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ class ScheduleController(

@Operation(summary = "나이스 학사일정 저장 api")
@PostMapping("/save")
fun saveSchedule(
) = scheduleUseCase.saveNeisInfoToDatabase()
fun saveSchedule() = scheduleUseCase.saveNeisInfoToDatabase()

@Operation(summary = "일 별 학사일정조회 api")
@GetMapping("/date")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import dsm.pick2024.domain.schedule.port.out.SaveSchedulePort
import dsm.pick2024.global.config.cache.CacheName
import dsm.pick2024.infrastructure.feign.NeisScheduleFeignClientService
import org.springframework.cache.annotation.CacheEvict
import org.springframework.context.annotation.Configuration
import org.springframework.stereotype.Component
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import java.time.LocalDate
Expand All @@ -23,7 +21,6 @@ class SaveScheduleService(
@CacheEvict(value = [CacheName.SCHEDULES], allEntries = true)
@Transactional
override fun saveNeisInfoToDatabase() {

val (start, end) = formatDate()
deleteSchedulePort.deleteAll()
val scheduleForSave =
Expand Down

0 comments on commit 052c54f

Please sign in to comment.