fix(aurora): changed the jsonencoder
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 21s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 31s

This commit is contained in:
Seaswimmer 2024-05-04 18:09:06 -04:00
parent 74a0983419
commit 356d58f9d7
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -11,7 +11,7 @@ class JSONEncoder(json.JSONEncoder):
if isinstance(o, timedelta): if isinstance(o, timedelta):
return str(o) return str(o)
if isinstance(o, AuroraBaseModel): if isinstance(o, AuroraBaseModel):
return o.model_dump() return o.to_json()
return super().default(o) return super().default(o)