Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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도 배송완료로 변경
Expand All @@ -85,7 +86,7 @@ public LeaderUserIdResponse confirmDelivered(Long userId, Long participationId)
}
}

return new LeaderUserIdResponse(postId);
return new LeaderUserIdResponse(leaderUserId);
}


Expand Down