(20241204) Fixing alerts bug.

This commit is contained in:
2024-12-04 17:22:02 +05:30
parent 0918db250b
commit d9f0348578
3 changed files with 233 additions and 6 deletions
+1 -2
View File
@@ -73,9 +73,8 @@ REGEX_SESSION_TOKEN = r"^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]
class ChatAlertRequestHeaders(BaseModel):
sessionToken: str = Field(
sessionToken: str | None = Field(
description = "the session token of the user who is requesting the service",
pattern = REGEX_SESSION_TOKEN,
frozen = True,
alias = "X-Session-Token"
)