Skip to content

Commit

Permalink
[refactor] 솝탬프 유저 삭제 메서드 추 (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
kseysh committed Oct 30, 2024
1 parent bfaee56 commit 0265998
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,8 @@ public void initAllSoptampUserPoints() {
soptampUserList.forEach(SoptampUser::initTotalPoints);
soptampUserRepository.saveAll(soptampUserList);
}

public void deleteSoptampUser(Long userId) {
soptampUserRepository.deleteByUserId(userId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ public interface SoptampUserRepository extends JpaRepository<SoptampUser, Long>
List<SoptampUser> findAllByGeneration(Long generation);

boolean existsByNickname(String nickname);

void deleteByUserId(Long userId);
}

0 comments on commit 0265998

Please sign in to comment.