editing updates, cosmetic changes
This commit is contained in:
@@ -53,3 +53,12 @@ class CategoriesRepository:
|
||||
await session.commit()
|
||||
|
||||
return category
|
||||
|
||||
async def update_category_name(
|
||||
self, session: AsyncSession, category_id: int, value: str
|
||||
):
|
||||
category = await self.get_category_by_id(session, category_id)
|
||||
category.name = value
|
||||
|
||||
await session.commit()
|
||||
return category
|
||||
|
||||
Reference in New Issue
Block a user