Skip to content

[FIX] 초대코드 등록시 club-service의 header에 userReferenceId 주입#154

Open
jungyuminn wants to merge 1 commit intodevelopmentfrom
hotfix/admin-service-clubId
Open

[FIX] 초대코드 등록시 club-service의 header에 userReferenceId 주입#154
jungyuminn wants to merge 1 commit intodevelopmentfrom
hotfix/admin-service-clubId

Conversation

@jungyuminn
Copy link
Contributor

1. 관련 이슈

#151

2. 구현한 내용 또는 수정한 내용

HttpHeader를 사용하여 club-service의 authroize-admin 호출 시 header에 userReferenceId를 주입합니다.
clubId는 그대로 요청 본문에 직접 전달합니다.

3. TODO

4. 배포 전 Checklist

@EeeasyCode

@jungyuminn jungyuminn added the fix 발견한 버그 label Nov 22, 2024
@jungyuminn jungyuminn self-assigned this Nov 22, 2024
Copy link
Member

@EeeasyCode EeeasyCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨어요~~!
올라온 PR들은 최종 발표 이후에 merge 진행해봅시다! 서비스 안정성을 위해서 ㅎㅎ

Comment on lines +48 to +53
HttpHeaders headers = new HttpHeaders();
headers.set("X-USER-REFERENCE-ID", userReferenceId);

HttpEntity<Long> requestEntity = new HttpEntity<>(clubId, headers);

ResponseEntity<Void> response = restTemplate.postForEntity(url, requestEntity, Void.class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분에 대해서는 다음 스프린트 때 다시 어떻게 적용해야할지 고민해봐야겠네요!
고생 많으셨습니다 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 발견한 버그

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants