WIP: Moderation type registry #26
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