chore: clean up texts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user