Skip to content

Commit

Permalink
Merge pull request #93 from Team-Growthook/fix/#92-actionPlanReposito…
Browse files Browse the repository at this point in the history
…ry-error-fix

[FIX]actionPlanRepository오류 수정
  • Loading branch information
Hong0329 authored Mar 18, 2024
2 parents 6965906 + 4888d6e commit 1a5ff26
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ public interface ActionPlanRepository extends JpaRepository<ActionPlan,Long> {
List<ActionPlan> findAllBySeedCaveMemberIdAndIsFinishedOrderByCreatedAtDesc(Long memberId, Boolean isFinished);

@Query("SELECT ap FROM ActionPlan ap JOIN ap.seed s JOIN s.cave c JOIN c.member m WHERE m.id = :memberId")
List<ActionPlan> findAllByMemberIdOrderByCreatedAtDesc(Long memberId);
List<ActionPlan> findAllByMemberId(Long memberId);
List<ActionPlan> findAllBySeedIdOrderByCreatedAtDesc(Long seedId);

List<ActionPlan> findAllBySeedId(Long seedId);

List<ActionPlan> findAllByMemberId(Long memberId);

Optional<ActionPlan> findActionPlanById(Long actionPlanId);

default ActionPlan findActionPlanByIdOrThrow(Long actionPlanId) {
Expand Down

0 comments on commit 1a5ff26

Please sign in to comment.