Skip to content

Commit 364217e

Browse files
committed
refactor(volunteer-apply): CurrentUser -> RoleId
1 parent 2aa0c65 commit 364217e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/somemore/domains/volunteerapply/controller/VolunteerApplyQueryApiController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public ApiResponse<Page<VolunteerApplyRecruitInfoResponseDto>> getVolunteerAppli
9090
@Operation(summary = "지원자 리스트 조회", description = "특정 모집글에 대한 지원자 리스트를 조회합니다.")
9191
@GetMapping("/volunteer-applies/recruit-board/{recruitBoardId}")
9292
public ApiResponse<Page<VolunteerApplyVolunteerInfoResponseDto>> getVolunteerApplies(
93-
@CurrentUser UUID centerId,
93+
@RoleId UUID centerId,
9494
@PathVariable Long recruitBoardId,
9595
@PageableDefault(sort = "created_at", direction = DESC) Pageable pageable,
9696
@RequestParam(required = false) Boolean attended,

src/test/java/com/somemore/domains/volunteerapply/controller/VolunteerApplyQueryApiControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void getSummaryByRecruitBoardId() throws Exception {
119119

120120
@Test
121121
@DisplayName("지원자 리스트를 조회 성공 테스트")
122-
@WithMockCustomUser(role = "CENTER")
122+
@MockUser(role = "ROLE_CENTER")
123123
void getVolunteerApplies() throws Exception {
124124
// given
125125
Long recruitBoardId = 1L;

0 commit comments

Comments
 (0)