Skip to content

Commit

Permalink
Chore: 잘못 삭제한 메서드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
suhyun113 committed Nov 27, 2024
1 parent eeaf036 commit 56c6de7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public interface StageProgressRepository extends JpaRepository<StageProgressEnti
// 특정 세션의 스테이지 진행 상태 조회
List<StageProgressEntity> findBySessionId(String sessionId);

// 특정 세션과 스테이지 ID로 엔티티 찾기
Optional<StageProgressEntity> findBySessionIdAndStageId(String sessionId, int stageId);

// sessionId가 같은 모든 레코드 삭제하는 메서드
@Modifying
@Query("DELETE FROM StageProgressEntity p WHERE p.sessionId = :sessionId")
Expand Down

0 comments on commit 56c6de7

Please sign in to comment.