fix(B06): 임시저장 엔드포인트가 깨져 있던 것 수정

포장·세월교 보정 헬퍼를 저장 시점으로 옮기면서 `@router.post(.../save)`
데코레이터와 `save_sections` 사이에 끼워 넣어, 라우트가 헬퍼(None 반환)에
붙어 있었다. 저장이 500(ResponseValidationError)으로 떨어졌다.

헬퍼를 데코레이터 앞으로 옮겨 라우트를 되돌렸다.

검증(용화 신규 프로젝트, 노선 145): 저장 200, 카드에서 고른 지반유형이
DB `cross_sections.data.design.ground_type` 에 반영되고 면적도 브라우저
계산값으로 갱신됨.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-06 16:11:40 +09:00
co-authored by Claude Opus 5
parent df2dedcbc4
commit 1cf47f39b2
+1 -1
View File
@@ -163,7 +163,6 @@ async def _apply_section_edits(
)
@router.post("/{project_id}/sections/{route_id}/save", response_model=SectionConfirmResponse)
async def _enforce_stored_designs(project_id: UUID, route_id: int) -> None:
"""저장분의 포장 구간·세월교 노면 하강을 바로잡는다 — 편집분을 얹기 **전에** 돈다.
@@ -182,6 +181,7 @@ async def _enforce_stored_designs(project_id: UUID, route_id: int) -> None:
)
@router.post("/{project_id}/sections/{route_id}/save", response_model=SectionConfirmResponse)
async def save_sections(
project_id: UUID,
route_id: int,