Skip to content

Commit

Permalink
fix CR preview response type
Browse files Browse the repository at this point in the history
  • Loading branch information
lunakv committed Oct 13, 2023
1 parent edd6f1f commit 354e8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffs/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def mtr_diff_metadata(db: Session = Depends(get_db)):
return meta


@router.get("/pending/cr", include_in_schema=False)
@router.get("/pending/cr", include_in_schema=False, response_model=schemas.PendingCRDiffResponse)
def cr_preview(response: Response, db: Session = Depends(get_db)):
diff: PendingCrDiff = service.get_pending_cr_diff(db)
if not diff:
Expand Down

0 comments on commit 354e8ba

Please sign in to comment.