Skip to content

Commit

Permalink
🐞 BugFix: νšŒμ› μ‚­μ œ 둜직 μˆ˜μ • (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong authored Jun 7, 2024
1 parent 66949a1 commit c35843c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import zzangdol.notification.dao.FcmTokenRepository;
import zzangdol.notification.domain.FcmToken;
import zzangdol.report.dao.ReportRepository;
import zzangdol.scrap.dao.CategoryRepository;
import zzangdol.scrap.dao.ScrapRepository;
import zzangdol.user.dao.UserRepository;
import zzangdol.user.domain.User;
Expand All @@ -21,6 +22,7 @@
@Service
public class UserCommandServiceImpl implements UserCommandService {

private final CategoryRepository categoryRepository;
private final ScrapRepository scrapRepository;
private final ReportRepository reportRepository;
private final DiaryRepository diaryRepository;
Expand Down Expand Up @@ -82,6 +84,7 @@ public void abortFcmToken(String token, User user) {

@Override
public void withDrawUser(User user) {
categoryRepository.deleteByUser(user);
scrapRepository.deleteByUser(user);
reportRepository.deleteByUser(user);
diaryRepository.deleteByUser(user);
Expand Down

0 comments on commit c35843c

Please sign in to comment.