Skip to content

Commit

Permalink
🐛 유실물 작성자 필드가 제대로 오지 않는 현상 해결 (#289) (#291)
Browse files Browse the repository at this point in the history
* 🐛 필드 수정

* 🐛 에러 스택 트레이스 연결되도록 수정
  • Loading branch information
semi-cloud authored Dec 12, 2024
1 parent 2903ce8 commit ae4a590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GetLostPostDto {
title = entity.title,
content = entity.content,
writer = entity.member?.nickname,
createdBy = entity.member?.createdBy,
createdBy = entity.createdBy,
createdAt = entity.date.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
subwayLineId = entity.subwayLine?.id,
status = entity.status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ class AuthenticationInterceptor(
}
when (e) {
is SignatureException, is UnsupportedJwtException, is IllegalArgumentException, is MalformedJwtException -> {
throw CommonException(ResponseCode.INVALID_ACCESS_TOKEN)
throw CommonException(ResponseCode.INVALID_ACCESS_TOKEN, e)
}

is ExpiredJwtException -> {
throw CommonException(ResponseCode.EXPIRED_ACCESS_TOKEN)
throw CommonException(ResponseCode.EXPIRED_ACCESS_TOKEN, e)
}

else -> {
if (e.message == ResponseCode.BLOCKED_MEMBER.message) throw e
throw CommonException(ResponseCode.INTERNAL_SERVER_ERROR)
throw CommonException(ResponseCode.INTERNAL_SERVER_ERROR, e)
}
}
}
Expand Down

0 comments on commit ae4a590

Please sign in to comment.