fix: simplify expected event types

This commit is contained in:
Vlad Stan
2026-05-13 15:23:29 +03:00
parent 272cb9bcc9
commit 28af192e34
+1 -1
View File
@@ -310,7 +310,7 @@ async def handle_square_event(event: dict):
event_type = event.get("type", "")
logger.info(f"Handling Square event: '{event_id}'. Type: '{event_type}'.")
if event_type in ("payment.created", "payment.updated"):
if event_type == "payment.updated":
await _handle_square_payment_event(event)
return