Skip to content

Commit

Permalink
bug :: cancel apply query update
Browse files Browse the repository at this point in the history
  • Loading branch information
jyk1029 committed Jan 24, 2024
1 parent 8413ef0 commit 88e22ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ interface ApplyRepository : JpaRepository<Apply, UUID> {
fun countByFeed(feed: Feed): Int
fun findByUser(user: User): List<Apply>
fun findByFeed(feed: Feed): List<Apply>
fun deleteByUserAndFeed(user: User, feed: Feed)
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ class CancelApplyService(
fun execute(feedId: UUID) {
val user = userFacade.getCurrentUser()
val feed = feedFacade.getByFeedId(feedId)
applyRepository.delete(Apply(user, feed))
applyRepository.deleteByUserAndFeed(user, feed)
}
}

0 comments on commit 88e22ab

Please sign in to comment.