Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Valbou committed Jul 14, 2024
1 parent 6b5ba9c commit 2a91ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notifications/events/observers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run(cls, app_ctx, event_name: str, event_data: dict):
APP_NAME, "Contact"
)
with app_ctx.dependencies.persistence.get_session() as session:
contact: Contact = contact_db.load(session, id=contact_id)
contact: Contact | None = contact_db.load(session, id=contact_id)

if contact:
contact.email = event_data.get("email", "")
Expand Down

0 comments on commit 2a91ae7

Please sign in to comment.