fix(aurora): make sure the user_id in changes is always an integer
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 42s

This commit is contained in:
Seaswimmer 2024-05-06 15:03:41 -04:00
parent 8d1a57165d
commit e14845ef85
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -301,7 +301,8 @@ class Change(AuroraBaseModel):
data.update({ data.update({
"timestamp": timestamp, "timestamp": timestamp,
"end_timestamp": end_timestamp, "end_timestamp": end_timestamp,
"duration": duration "duration": duration,
"user_id": int(data["user_id"])
}) })
return cls(bot=bot, **data) return cls(bot=bot, **data)