fix: make wallet optional in CreateEvent for propose endpoint
Some checks failed
lint.yml / fix: make wallet optional in CreateEvent for propose endpoint (pull_request) Failing after 0s

The propose endpoint sets wallet from the authenticated user's
invoice key. Making wallet optional in the model allows the
request body to omit it. The admin create endpoint falls back
to the auth wallet if not provided.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-04-27 10:32:16 +02:00
commit 32ea79a137
2 changed files with 3 additions and 1 deletions

View file

@ -28,7 +28,7 @@ class EventExtra(BaseModel):
class CreateEvent(BaseModel):
wallet: str
wallet: Optional[str] = None
name: str
info: str
closing_date: str