mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
wip: crud refactor
This commit is contained in:
@@ -116,5 +116,5 @@ async def update_stuff(
|
||||
db_session: AsyncSession = Depends(get_db),
|
||||
):
|
||||
stuff = await Stuff.find(db_session, name)
|
||||
await stuff.update(db_session, **payload.model_dump())
|
||||
await stuff.update(**payload.model_dump())
|
||||
return stuff
|
||||
|
||||
Reference in New Issue
Block a user