fix(aurora): make Change.reason optional
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 44s

This commit is contained in:
Seaswimmer 2024-06-04 15:37:58 -04:00
parent 3168c42787
commit 7a664ce9c3
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -12,8 +12,8 @@ from .partials import PartialUser
class Change(AuroraBaseModel):
type: Literal["ORIGINAL", "RESOLVE", "EDIT"]
timestamp: datetime
reason: str
user_id: int
reason: Optional[str] = "No reason provided"
duration: Optional[timedelta] = None
end_timestamp: Optional[datetime] = None