Skip to content

Commit 57a6710

Browse files
committed
feat: 마이바(MyBar) 킵 해제 기능 추가 (소프트 삭제)
1 parent a5b21c8 commit 57a6710

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,10 @@ public void keep(Long userId, Long cocktailId) {
6868

6969
myBarRepository.save(myBar);
7070
}
71+
72+
/** 킵 해제(소프트 삭제) */
73+
@Transactional
74+
public void unkeep(Long userId, Long cocktailId) {
75+
myBarRepository.softDeleteByUserAndCocktail(userId, cocktailId);
76+
}
7177
}

0 commit comments

Comments
 (0)