Products Rendering, removal of deprecated files

This commit is contained in:
2026-02-06 20:08:05 +07:00
parent 0e95c2986a
commit d8cad25f33
17 changed files with 277 additions and 62 deletions

View File

@@ -12,7 +12,7 @@ class CategoriesRepository:
stmt = select(Category).where(Category.id == category_id)
return await session.scalar(stmt)
async def get_category_by_parent_id(
async def get_categories_by_parent_id(
self, session: AsyncSession, parent_id: Optional[int] = None
) -> list[Category]:
stmt = select(Category).where(Category.parent_id == parent_id)