added thi one also DNI

remove it if not needed
This commit is contained in:
Tiago Vasconcelos 2024-10-07 17:27:05 +01:00 committed by dni ⚡
parent 0993b8dbad
commit 66d180fd97
No known key found for this signature in database
GPG Key ID: D1F416F29AD26E87

View File

@ -349,7 +349,7 @@ class Database(Compat):
await conn.insert(table_name, model)
async def update(
self, table_name: str, model: BaseModel, where: str = "id = :id"
self, table_name: str, model: BaseModel, where: str = "WHERE id = :id"
) -> None:
async with self.connect() as conn:
await conn.update(table_name, model, where)