feat: return upload job items for resume
This commit is contained in:
parent
cf1e448a65
commit
a82dc33f23
2 changed files with 12 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue