Skip to content

Commit

Permalink
Pass facility into proposal_service function call.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed Jan 9, 2025
1 parent 1a193ad commit 195dcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nsls2api/api/v1/facility_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ async def get_proposals_for_cycle(facility: FacilityName, cycle: str):
status_code=501,
)

proposal_list = await proposal_service.fetch_proposals_for_cycle(cycle)
proposal_list = await proposal_service.fetch_proposals_for_cycle(cycle, facility)
if proposal_list is None:
return fastapi.responses.JSONResponse(
{"error": f"No proposals were found for cycle {cycle}"},
{"error": f"No proposals were found for cycle {cycle} for facility {facility.name}"},
status_code=404,
)
model = CycleProposalList(
Expand Down

0 comments on commit 195dcd6

Please sign in to comment.