fix: Use db.insert() for ticket creation to fix SQLite serialization #1

Closed
padreug wants to merge 8 commits from fix/sqlite-ticket-extra-serialization into main
2 changed files with 14 additions and 14 deletions
Showing only changes of commit 4fb6d90fcd - Show all commits

Adds public events endpoint and user tickets
Some checks are pending
lint / lint (push) Waiting to run
/ release (push) Waiting to run
/ pullrequest (push) Blocked by required conditions

Adds a public events endpoint that allows read-only access to all events.
Improves ticket management by adding support for user IDs as an identifier, alongside name and email.
This simplifies ticket creation for authenticated users and enhances security.
Also introduces an API endpoint to fetch tickets by user ID.
padreug 2025-11-03 23:05:31 +01:00

View file

@ -37,7 +37,7 @@ class CreateEvent(BaseModel):
currency: str = "sat"
amount_tickets: int = Query(..., ge=0)
price_per_ticket: float = Query(..., ge=0)
banner: str | None = None
banner: Optional[str] = None
extra: EventExtra = Field(default_factory=EventExtra)