Skip to content

Commit

Permalink
Merge pull request #98 from YAPP-Github/fix/ISSUE-97
Browse files Browse the repository at this point in the history
  • Loading branch information
Seokyeong237 authored Feb 20, 2024
2 parents 99121e8 + 569a5ab commit 96846a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ public void revoke(Member member) {
headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
headers.set("Authorization", "KakaoAK " + adminKey);

MultiValueMap<String, String> map = new LinkedMultiValueMap<>();
MultiValueMap<String, Object> map = new LinkedMultiValueMap<>();
map.add("target_id_type", "user_id");
map.add("target_id", member.getSocialId().toString());
map.add("target_id", Long.valueOf(member.getSocialId().getSocialId()));

HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<>(map, headers);
HttpEntity<MultiValueMap<String, Object>> request = new HttpEntity<>(map, headers);

try {
restTemplate.exchange(
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/fullcar/member/domain/auth/SocialId.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;


import static lombok.AccessLevel.PROTECTED;

@Embeddable
@Getter
@NoArgsConstructor(access = PROTECTED)
@AllArgsConstructor
public class SocialId {
Expand Down

0 comments on commit 96846a4

Please sign in to comment.