Skip to content

Commit

Permalink
style: 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kpeel5839 committed Aug 24, 2024
1 parent f449166 commit 4a2f12d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ data class CheckedRestrictionResponse(
) {

companion object {

fun from(user: User): CheckedRestrictionResponse {
return CheckedRestrictionResponse(
user.restriction.messageRestriction.restrictionType,
Expand All @@ -20,6 +21,7 @@ data class CheckedRestrictionResponse(
user.restriction.voteRestriction.releaseDate
)
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class CheckedUserRestrictionService(
@Transactional(readOnly = true)
override fun getUserRestriction(): CheckedRestrictionResponse {
val loginUser = SecurityUtils.getLoginUser(userPort)

return CheckedRestrictionResponse.from(loginUser)
}

Expand Down

0 comments on commit 4a2f12d

Please sign in to comment.