fix(aurora): fixed Moderation.update() not converting the duration timedelta to the correct kind of string
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 41s

This commit is contained in:
Seaswimmer 2024-08-14 15:08:37 -04:00
parent 48d2f8b416
commit 5fc6d0eb6a
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -181,7 +181,7 @@ class Moderation(AuroraGuildModel):
self.target_type,
self.moderator_id,
self.role_id,
str(self.duration) if self.duration else None,
timedelta_to_string(self.duration) if self.duration else None,
self.end_timestamp.timestamp() if self.end_timestamp else None,
self.reason,
self.resolved,