Skip to content

Commit

Permalink
Update src/main/kotlin/com/msg/gauth/domain/user/service/GetAcceptedU…
Browse files Browse the repository at this point in the history
…sersService.kt

Co-authored-by: 김태오 <[email protected]>
  • Loading branch information
Umjiseung and KimTaeO authored Sep 18, 2024
1 parent 515e287 commit 51d9ee6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class GetAcceptedUsersService(
private val userRepository: UserRepository,
) {

@Cacheable(value = ["AcceptedUser"], condition = "#request.grade == 0 && #request.classNum == 0 && #request.keyword.equals('') && #request.role.equals('ROLE_STUDENT')", cacheManager = "redisCacheManager")
@Cacheable(value = ["AcceptedUsers"], condition = "#request.grade == 0 && #request.classNum == 0 && #request.keyword.equals('') && #request.role.equals('ROLE_STUDENT')", cacheManager = "redisCacheManager")
fun execute(request: AcceptedUserRequest): List<SingleAcceptedUserResDto> =
when (request.role) {
UserRoleType.ROLE_STUDENT -> userRepository.search(request.grade, request.classNum, request.keyword)
Expand Down

0 comments on commit 51d9ee6

Please sign in to comment.