fix(B07): 수량 확정이 항상 500 — get_db_pool()에 잘못 붙은 await 제거

get_db_pool()은 동기 함수인데 B07만 await로 불렀다. 그 결과 풀 대신
_PoolConnectionContextManager가 잡혀 acquire()에서 터졌다.

  AttributeError: '_PoolConnectionContextManager' object has no attribute 'acquire'

좌측 패널 [확정]을 누를 때마다 stage 4가 전이되지 않고 500이 났다(서버 로그 확인).
프로젝트 안에서 await를 붙인 호출부는 여기 한 곳뿐이다.

ruff format·check 통과.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-08 16:54:29 +09:00
co-authored by Claude Opus 5
parent 4b1f922ce3
commit 7a265e5db4
+1 -1
View File
@@ -21,7 +21,7 @@ router = APIRouter(prefix="/api/projects", tags=["B07 Quantity"])
@router.post("/{project_id}/quantity/confirm")
async def confirm_quantity(project_id: UUID) -> JSONResponse:
"""수량 단계 확정 — stage 4(QUANTITY)를 COMPLETE로 전이한다 (본문 미구현)."""
pool = await get_db_pool()
pool = get_db_pool()
async with pool.acquire() as connection:
try:
async with connection.cursor() as cursor: