mirror of
https://github.com/etesync/server
synced 2025-04-18 09:19:00 +00:00
more
This commit is contained in:
parent
0d9c9f153d
commit
b9f2cea951
@ -27,7 +27,7 @@ class MsgpackResponse(Response):
|
||||
return b""
|
||||
|
||||
if isinstance(content, BaseModel):
|
||||
content = content.dict()
|
||||
content = content.model_dump()
|
||||
return msgpack_encode(content)
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user