fix(aurora): changed the jsonencoder

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

View file

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