Skip to content

Commit

Permalink
fix: 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Aug 16, 2024
1 parent c5cdbff commit 8c51b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void deleteMemberAction(String token, Long actionId) {

memberActionRepository.deleteAllByMemberNameAndMinSequence(memberAction.getMemberName(), memberAction.getSequence());

List<BillAction> billActions = billActionRepository.findByGreaterThanSequence(action.getSequence());
List<BillAction> billActions = billActionRepository.findByEventAndGreaterThanSequence(event, action.getSequence());
billActions.forEach(billAction -> resetBillAction(event, billAction));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface BillActionRepository extends JpaRepository<BillAction, Long> {
@Query("""
select ba
from BillAction ba
where ba.action.sequence > :sequence
where ba.action.event = :event and ba.action.sequence > :sequence
""")
List<BillAction> findByGreaterThanSequence(Long sequence);
List<BillAction> findByEventAndGreaterThanSequence(Event event, Long sequence);
}

0 comments on commit 8c51b8d

Please sign in to comment.