feat: return upload job items for resume

This commit is contained in:
hailt 2026-11-12 22:42:11 +07:00
parent cf1e448a65
commit a82dc33f23
2 changed files with 12 additions and 1 deletions

View file

@ -38,7 +38,7 @@ async def create(project_id: str, body: CreateUploadJobIn,
@router.get("/{job_id}")
async def get(project_id: str, job_id: str, db: AsyncSession = Depends(get_session)):
data = await svc.get_job(job_id, db)
data = await svc.get_job_detail(job_id, db)
if data["projectId"] != project_id:
from fastapi import HTTPException
raise HTTPException(404, "upload job not found")