From c35843c4feb19359b879b48c7bbf917b34ef8eeb Mon Sep 17 00:00:00 2001 From: Ahn Su-gyeong Date: Fri, 7 Jun 2024 15:18:43 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20BugFix:=20=ED=9A=8C=EC=9B=90=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?(#108)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/zzangdol/user/implement/UserCommandServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moodoodle-api/src/main/java/zzangdol/user/implement/UserCommandServiceImpl.java b/moodoodle-api/src/main/java/zzangdol/user/implement/UserCommandServiceImpl.java index 5401d0a..4fcf28d 100644 --- a/moodoodle-api/src/main/java/zzangdol/user/implement/UserCommandServiceImpl.java +++ b/moodoodle-api/src/main/java/zzangdol/user/implement/UserCommandServiceImpl.java @@ -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; @@ -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; @@ -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);