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 @@ -230,8 +230,8 @@ private void ensureSameLine(DecisionLine line, DecisionNodeNextRequest lastDecis
throw new ApiException(ErrorCode.INVALID_INPUT_VALUE, "lastDecision.parentDecisionNodeId is required");
}

// 부모 노드 id로 조회(없으면 404)
DecisionNode parent = decisionNodeRepository.findById(lastDecision.parentDecisionNodeId())
// 부모 노드 id로 조회(없으면 404) - DecisionLine과 User를 EAGER 로딩
DecisionNode parent = decisionNodeRepository.findWithLineAndUserById(lastDecision.parentDecisionNodeId())
.orElseThrow(() -> new ApiException(
ErrorCode.NODE_NOT_FOUND,
"parent decision node not found: " + lastDecision.parentDecisionNodeId()
Expand Down