This commit is contained in:
Robert 2024-02-25 17:02:59 +07:00
parent 7767af73a7
commit 7a69a56cac
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -14,7 +14,6 @@ class ChainRepository:
async def upsert(self, chain: Chain) -> Chain:
query = {"_id": chain.id}
payload = chain.model_dump(by_alias=True)
await self.collection.replace_one(query, payload, upsert=True)
return chain