Skip to content

Commit c206c70

Browse files
committed
fix: 파라미터 이름 변경
1 parent fb17625 commit c206c70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/commerce-api/src/main/java/com/loopers/infrastructure/order/OrderJpaRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public interface OrderJpaRepository extends JpaRepository<Order, Long> {
1515
"JOIN FETCH oi.product p " +
1616
"JOIN FETCH p.brand " +
1717
"WHERE o.id = :orderId AND o.user.id = :userId")
18-
Optional<Order> findByIdAndUser(@Param("orderId") Long orderId, @Param("userBusinessId") Long userId);
18+
Optional<Order> findByIdAndUser(@Param("orderId") Long orderId, @Param("userId") Long userId);
1919

2020
@Query("SELECT o FROM Order o WHERE o.user.id = :userId ORDER BY o.createdAt DESC")
21-
List<Order> findAllByUser(@Param("userBusinessId") Long userId);
21+
List<Order> findAllByUser(@Param("userId") Long userId);
2222
}

0 commit comments

Comments
 (0)