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

[BE/#443] 유저 탈퇴시 게시글을 삭제 되지 않도록 수정 #445

Merged
merged 3 commits into from
Dec 10, 2023

Conversation

koomin1227
Copy link
Member

이슈

체크리스트

  • 유저 탈퇴시 게시글을 삭제 되지 않도록 수정

고민한 내용

  • 탈퇴시 게시글은 삭제되지 않도록 수정

스크린샷

@koomin1227 koomin1227 added BE BE 관련 environment 공통 개발 환경 설정 labels Dec 10, 2023
@koomin1227 koomin1227 self-assigned this Dec 10, 2023
await this.blockPostRepository.softDelete({ blocker: userHash });
await this.blockUserRepository.softDelete({ blocker: userHash });
await this.blockUserRepository.softDelete({ blocked_user: userHash });
await this.userRepository.softDelete({ id: userId });
Copy link
Collaborator

Choose a reason for hiding this comment

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

탈퇴해도 게시글은 삭제 안되게, blockUser 는 삭제 좋습니다

@namewhat99 namewhat99 merged commit 7579fe0 into BE Dec 10, 2023
1 check passed
@namewhat99 namewhat99 deleted the BE-ChangeUserDelete-#443 branch December 10, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE BE 관련 environment 공통 개발 환경 설정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants