Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import re
import traceback
from types import SimpleNamespace
from typing import Any, Dict
from typing import Any, Dict, Optional
Comment thread
Shubhashish-Chakraborty marked this conversation as resolved.
from urllib.parse import urlparse, parse_qs

from workers import Response, DurableObject
Expand Down Expand Up @@ -2147,7 +2147,7 @@ async def on_fetch(request, env):
# ---------------------------------------------------------------------------

async def _create_notification(env, user_id: str, type_: str, title: str,
message: str, related_id: str | None = None) -> None:
message: str, related_id: Optional[str] = None) -> None:
"""Internal helper called by other handlers to create a notification.

Silently swallows errors so a notification failure never breaks the
Expand Down
Loading