Skip to content

Commit

Permalink
fix: Fix statusCode hard-coded to 404
Browse files Browse the repository at this point in the history
  • Loading branch information
kongwoojin committed Aug 4, 2024
1 parent a51e795 commit 49190d6
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 @@ -10,7 +10,7 @@ fun ArticleResponse?.mapToArticle(code: Int): ResponseResult<Article> {
if (this == null) {
return ResponseResult.Success(
Article(
statusCode = 404,
statusCode = code,
title = "",
writer = "",
content = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fun BoardResponse?.mapToBoard(code: Int): ResponseResult<Board> {
return ResponseResult.Success(
BoardResponse(
lastPage = 1,
statusCode = 404,
statusCode = code,
boardData = emptyList()
)
)
Expand Down

0 comments on commit 49190d6

Please sign in to comment.