Skip to content

Commit

Permalink
♻️ :: method명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jyk1029 committed Sep 28, 2023
1 parent afa110c commit 22e61c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ interface UserApi {
suspend fun getAllStudentByName(name: String): List<User>
suspend fun getAllUserByRole(role: String?): List<User>
suspend fun getExcludeUserIdList(userIdList: List<UUID>?): List<UUID>
suspend fun updateDeviceToken(userId: UUID)
suspend fun setEmptyDeviceToken(userId: UUID)
}
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class UserApiImpl(
}
}

override suspend fun updateDeviceToken(userId: UUID) {
override suspend fun setEmptyDeviceToken(userId: UUID) {
val user = userRepositorySpi.findByIdAndStateWithCreated(userId)
?: throw UserNotFoundException(UserNotFoundException.USER_ID_NOT_FOUND)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class UserHandler(

suspend fun logoutHandler(serverRequest: ServerRequest): ServerResponse {
val userId = requestHeaderAspect.getUserId(serverRequest)
userApi.updateDeviceToken(userId)
userApi.setEmptyDeviceToken(userId)

return ServerResponse.noContent().buildAndAwait()
}
Expand Down

0 comments on commit 22e61c3

Please sign in to comment.