Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

회원 탈퇴를 할 수 있다. #545

Merged
merged 9 commits into from
Dec 10, 2023
Merged

회원 탈퇴를 할 수 있다. #545

merged 9 commits into from
Dec 10, 2023

Conversation

lsh23
Copy link
Collaborator

@lsh23 lsh23 commented Dec 9, 2023

PR 요약

  • 회원 탈퇴 구현
  • CASCADE 옵션 추가

변경 사항

  • 환경 변수 추가
    • APPLE_TOKEN_URL
    • APPLE_REVOKE_URL
    • APPLE_CLIENT_ID
    • APPLE_KEY_ID
    • APPLE_TEAM_ID
    • APPLE_AUD
    • APPLE_PRIVATE_KEY

Linked Issue

close #536

@lsh23 lsh23 added BE BE 관련사항 feature 기능 추가 메인 메인 기능 labels Dec 9, 2023
@lsh23 lsh23 added this to the week5 milestone Dec 9, 2023
@lsh23 lsh23 requested a review from Dltmd202 December 9, 2023 09:32
@lsh23 lsh23 self-assigned this Dec 9, 2023
Copy link
Member

@Dltmd202 Dltmd202 left a comment

Choose a reason for hiding this comment

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

작업양이 엄청나네요...
진짜 수고많으셨어요👍👍

@@ -7,7 +7,7 @@ export class UsersRoleEntity {
@PrimaryColumn({ type: 'bigint', nullable: false })
userId: number;

@ManyToOne(() => UserEntity)
@ManyToOne(() => UserEntity, { onDelete: 'CASCADE' })
Copy link
Member

Choose a reason for hiding this comment

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

아하! 일단은 이렇게 해서 삭제가 되었나 보네요! 다행입니다.

Comment on lines +43 to +46
@OneToOne(() => GroupAchievementEntity, {
nullable: true,
onDelete: 'SET NULL',
})
Copy link
Member

Choose a reason for hiding this comment

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

그룹 달성기록은 casecade에서 삭제 안하고 나두셨네요! 좋습니다!

@@ -17,7 +17,7 @@ export class UserGroupEntity extends BaseTimeEntity {
@PrimaryGeneratedColumn()
id: number;

@ManyToOne(() => UserEntity)
@ManyToOne(() => UserEntity, { onDelete: 'CASCADE' })
Copy link
Member

Choose a reason for hiding this comment

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

이게 어떻게 될지 모르겠는데!
혹시 그룹장이 회원탈퇴를 하면 어떻게 될까요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

우선은 group entity는 삭제 안되고 user_group만 삭제 그러니까 그룹장만 그룹에서 없어지도록 했습니다.
Manager가 있으면 그 Manager가 그룹장이 된다거나 이런 로직은 현재 논의된게 없고 케이스가 복잡해서 우선은 그룹장만 나가도록 해놨습니다.

Copy link
Member

Choose a reason for hiding this comment

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

아하!... 그죠 그건 너무 복잡해질 것 같긴해요...
네 일단 너무 수고 하셨어요!

@lsh23 lsh23 merged commit 073a1ce into develop Dec 10, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE BE 관련사항 feature 기능 추가 메인 메인 기능
Projects
None yet
Development

Successfully merging this pull request may close these issues.

회원 탈퇴 API를 작성한다.
2 participants