Skip to content

Commit 2ae43a5

Browse files
committed
respect aliases on writes
1 parent c963d37 commit 2ae43a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/bubble_data_api_client/client

src/bubble_data_api_client/client/orm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def get_many(cls, uids: list[str]) -> dict[str, typing.Self]:
5656

5757
async def save(self) -> None:
5858
async with _get_client() as client:
59-
data = self.model_dump(exclude={"uid"})
59+
data = self.model_dump(exclude={"uid"}, by_alias=True)
6060
response = await client.update(self._typename, self.uid, data)
6161
response.raise_for_status()
6262

0 commit comments

Comments
 (0)