Skip to content

Commit

Permalink
fix: 회원탈퇴시 DB에 User 남는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed May 24, 2024
1 parent 1293da2 commit c95a185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ export class AuthService {
}

async signout(kakaoToken: string) {
const { kakaoId } = await this.kakaoTokenInfo(kakaoToken);
const { id } = await this.kakaoTokenInfo(kakaoToken);

this.userService.removeOneByKakaoId(kakaoId);
this.userService.removeOneByKakaoId(id);
await this.kakaoUnlink(kakaoToken);

return { message: 'Successfully signed out' };
Expand Down

0 comments on commit c95a185

Please sign in to comment.