fix: make promo_code and refund_address optional query params
Some checks failed
lint.yml / fix: make promo_code and refund_address optional query params (pull_request) Failing after 0s
Some checks failed
lint.yml / fix: make promo_code and refund_address optional query params (pull_request) Failing after 0s
These were required query params on the GET ticket endpoint, causing 400 errors when not provided. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a41348df94
commit
eb474b1390
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ async def api_ticket_make_ticket_user_id(event_id: str, user_id: str):
|
||||||
|
|
||||||
|
|
||||||
@events_api_router.get("/api/v1/tickets/{event_id}/{name}/{email}")
|
@events_api_router.get("/api/v1/tickets/{event_id}/{name}/{email}")
|
||||||
async def api_ticket_make_ticket(event_id, name, email, promo_code, refund_address):
|
async def api_ticket_make_ticket(event_id, name, email, promo_code=None, refund_address=None):
|
||||||
event = await get_event(event_id)
|
event = await get_event(event_id)
|
||||||
if not event:
|
if not event:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue