diff --git a/src/main/java/com/pickple/server/api/moimsubmission/repository/MoimSubmissionRepository.java b/src/main/java/com/pickple/server/api/moimsubmission/repository/MoimSubmissionRepository.java index caf280d..55cdff3 100644 --- a/src/main/java/com/pickple/server/api/moimsubmission/repository/MoimSubmissionRepository.java +++ b/src/main/java/com/pickple/server/api/moimsubmission/repository/MoimSubmissionRepository.java @@ -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 findSubmittedMoimSubmissions(@Param("guestId") Long guestId); @Query("SELECT ms FROM MoimSubmission ms WHERE ms.moim.id = :moimId AND ms.moimSubmissionState = 'approved'") List findApprovedMoimSubmissionsByMoimId(@Param("moimId") Long moimId); - - List findSubmittedMoimSubmissions(@Param("guestId") Long guestId); + }