Skip to content

Commit

Permalink
make phone and email optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonavic committed Jan 7, 2025
1 parent 53b4bca commit 2271951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meldingen_core/actions/melding.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(
super().__init__(repository)
self._verify_token = token_verifier

async def __call__(self, pk: int, phone: str, email: str, token: str) -> T:
async def __call__(self, pk: int, phone: str | None, email: str | None, token: str) -> T:
melding = await self._verify_token(pk, token)

melding.phone = phone
Expand Down

0 comments on commit 2271951

Please sign in to comment.