fix(aurora): changed the jsonencoder
This commit is contained in:
parent
74a0983419
commit
356d58f9d7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue