1
0
mirror of https://github.com/etesync/server synced 2025-04-18 09:19:00 +00:00
This commit is contained in:
Tom Hacohen 2024-06-08 18:33:29 -04:00
parent 0d9c9f153d
commit b9f2cea951
2 changed files with 2 additions and 5 deletions

View File

@ -27,7 +27,7 @@ class MsgpackResponse(Response):
return b""
if isinstance(content, BaseModel):
content = content.dict()
content = content.model_dump()
return msgpack_encode(content)

View File

@ -25,10 +25,7 @@ T = t.TypeVar("T", bound=Model, covariant=True)
class BaseModel(PyBaseModel):
class Config:
json_encoders = {
bytes: lambda x: x,
}
pass
@dataclasses.dataclass