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

DRAW-443 탈퇴 시 소셜 플랫폼 정보 제거 로직 추가 #19

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

SunwoongH
Copy link
Contributor

Related Jira ✔

Description ✔

PR Rule ✔

P1: 꼭 반영해주세요 (Request changes)
P2: 적극적으로 고려해주세요 (Request changes)
P3: 웬만하면 반영해 주세요 (Comment)
P4: 반영해도 좋고 넘어가도 좋습니다 (Approve)
P5: 그냥 사소한 의견입니다 (Approve)

@SunwoongH SunwoongH self-assigned this Nov 11, 2024
@SunwoongH SunwoongH requested a review from comforest November 11, 2024 07:29
Comment on lines 20 to 25
@Modifying
@Query(
"delete from AuthUserJpaEntity au " +
"where au.user = :userId",
)
fun deleteAllByUserId(@Param(value = "userId") userId: Long)
Copy link
Contributor

Choose a reason for hiding this comment

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

p1. 둘 중 하나의 방법을 취하면 될 것 같습니다

Suggested change
@Modifying
@Query(
"delete from AuthUserJpaEntity au " +
"where au.user = :userId",
)
fun deleteAllByUserId(@Param(value = "userId") userId: Long)
@Modifying
@Query(
"delete from AuthUserJpaEntity au " +
"where au.user.id = :userId",
)
fun deleteAllByUserId(@Param(value = "userId") userId: Long)
Suggested change
@Modifying
@Query(
"delete from AuthUserJpaEntity au " +
"where au.user = :userId",
)
fun deleteAllByUserId(@Param(value = "userId") userId: Long)
fun deleteByUser_Id(userId: Long)


internal interface RefreshTokenJpaRepository : JpaRepository<RefreshTokenJpaEntity, ByteArray> {
@Modifying
Copy link
Contributor

Choose a reason for hiding this comment

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

p3. JPA 쓴다면 그냥 써도 되지 않나요?

@SunwoongH SunwoongH requested a review from comforest November 13, 2024 11:42
@comforest comforest merged commit 98a05ab into feature/DRAW-347 Nov 25, 2024
1 check passed
@comforest comforest deleted the feature/DRAW-443 branch November 25, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants