Skip to content

Commit f71a89e

Browse files
committed
fix response model
1 parent 39ab851 commit f71a89e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/btrixcloud/background_jobs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ async def get_org_background_job(
792792
"""Retrieve information for background job"""
793793
return await ops.get_background_job(job_id, org.id)
794794

795-
@app.get("/orgs/all/jobs/{job_id}", response_model=SuccessResponse, tags=["jobs"])
795+
@app.get("/orgs/all/jobs/{job_id}", response_model=AnyJob, tags=["jobs"])
796796
async def get_background_job_all_orgs(job_id: str, user: User = Depends(user_dep)):
797797
"""Get background job from any org"""
798798
if not user.is_superuser:

0 commit comments

Comments
 (0)