Skip to content

Commit

Permalink
[merge] 모임 종료 시 상태 전환 안되는 이슈 수정
Browse files Browse the repository at this point in the history
[hotfix] 모임 종료 시 상태 전환 안되는 이슈 수정
  • Loading branch information
lreowy authored Oct 19, 2024
2 parents fdd37d4 + ab4561a commit df8609c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ default MoimSubmission findMoimSubmissionByIdOrThrow(Long id) {
boolean existsByMoimIdAndGuestIdAndMoimSubmissionState(Long moimId, Long guestId, String MoimSubmissionState);

@Query("SELECT ms FROM MoimSubmission ms WHERE ms.guestId = :guestId AND ms.moimSubmissionState IN ('pendingPayment','pendingApproval', 'approved', 'rejected','refunded')")
List<MoimSubmission> findSubmittedMoimSubmissions(@Param("guestId") Long guestId);

@Query("SELECT ms FROM MoimSubmission ms WHERE ms.moim.id = :moimId AND ms.moimSubmissionState = 'approved'")
List<MoimSubmission> findApprovedMoimSubmissionsByMoimId(@Param("moimId") Long moimId);

List<MoimSubmission> findSubmittedMoimSubmissions(@Param("guestId") Long guestId);


}

0 comments on commit df8609c

Please sign in to comment.