diff --git a/src/main/java/org/sopt/poti/domain/participation/service/ParticipationService.java b/src/main/java/org/sopt/poti/domain/participation/service/ParticipationService.java index 550354b..e2afa5b 100644 --- a/src/main/java/org/sopt/poti/domain/participation/service/ParticipationService.java +++ b/src/main/java/org/sopt/poti/domain/participation/service/ParticipationService.java @@ -73,6 +73,7 @@ public LeaderUserIdResponse confirmDelivered(Long userId, Long participationId) // 2 해당 공구글의 모든 주문(OrderStatus)이 배송완료인지 검사 Long postId = order.getGroupBuyPost().getId(); + Long leaderUserId = order.getGroupBuyPost().getLeader().getId(); long remaining = orderService.countByGroupBuyPostIdAndStatusNot(postId, OrderStatus.DELIVERED); // 3) 남은 주문이 0개 -> GroupBuyPostStatus도 배송완료로 변경 @@ -85,7 +86,7 @@ public LeaderUserIdResponse confirmDelivered(Long userId, Long participationId) } } - return new LeaderUserIdResponse(postId); + return new LeaderUserIdResponse(leaderUserId); }