Skip to content

Commit

Permalink
Merge pull request #67 from lunakv/0.5.1-hotfix
Browse files Browse the repository at this point in the history
Fix CR preview response type
  • Loading branch information
lunakv authored Oct 13, 2023
2 parents 7c97a3e + 354e8ba commit 15ac83b
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 15ac83b

Please sign in to comment.