chore: clean up texts

This commit is contained in:
2026-08-13 11:30:04 +07:00
parent 104cf71969
commit 1b78f2ba36
7 changed files with 111 additions and 5 deletions

View File

@@ -43,6 +43,17 @@ class ProductRepository:
await session.commit()
async def clear_product_photo(self, session: AsyncSession, product_id: int) -> Product | None:
product = await self.get_product_by_id(session, product_id)
if not product:
return None
product.file_id = None
product.img_path = None
await session.commit()
return product
async def search(
self,
session: AsyncSession,