Skip to content

Commit

Permalink
Merge pull request #153 from TEAM-YOAJUNG/hotfix/admin-service-clubId
Browse files Browse the repository at this point in the history
[FIX] admin-service의 club-service api 호출 시 ResponseEntity 수정
  • Loading branch information
EeeasyCode authored Nov 21, 2024
2 parents 7016ca5 + 9e2393f commit 27dd729
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public InviteCode registerInviteCode(String inviteCode, String userReferenceId)
String url = clubServiceUrl + "/admin/api/v1/authorize-admin";

try {
ResponseEntity<Boolean> response = restTemplate.postForEntity(url, clubId, Boolean.class);
ResponseEntity<Void> response = restTemplate.postForEntity(url, clubId, Void.class);

if (!response.getStatusCode().is2xxSuccessful() || Boolean.FALSE.equals(response.getBody())) {
if (!response.getStatusCode().is2xxSuccessful()) {
throw new IllegalArgumentException("동아리 관리자 권한 부여 실패");
}

Expand Down

0 comments on commit 27dd729

Please sign in to comment.