Skip to content

Commit

Permalink
modify :: logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeh2926 committed Apr 13, 2024
1 parent 5115f89 commit 8ecf0cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class NoticeController(

@GetMapping
fun getNoticeListByType(
@RequestParam("type") type: NoticeType
@RequestParam("type") type: NoticeType?
): QueryNoticeResponse =
queryNoticeListByTypeService.execute(type)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class QueryNoticeListByTypeService(
) {

@Transactional(readOnly = true)
fun execute(type: NoticeType): QueryNoticeResponse {
fun execute(type: NoticeType?): QueryNoticeResponse {
val notices = getNoticeList(type).map { it ->
NoticeDto(
id = it.id!!,
Expand Down

0 comments on commit 8ecf0cd

Please sign in to comment.