Skip to content

Commit 9e9c531

Browse files
committed
feat: MyBarService에 사용자 전체 킵 목록 초기화 기능 구현
1 parent 8ff3df6 commit 9e9c531

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/back/domain/mybar/service/MyBarService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,13 @@ public void unkeep(Long userId, Long cocktailId) {
123123
abvScoreService.revokeForKeep(userId);
124124
}
125125
}
126+
127+
@Transactional
128+
public void clearAll(Long userId) {
129+
int changed = myBarRepository.softDeleteAllByUser(userId);
130+
if (changed > 0) {
131+
abvScoreService.revokeForKeep(userId, changed);
132+
}
133+
}
126134
}
127135

0 commit comments

Comments
 (0)