product management, unification of kb and so on.
This commit is contained in:
@@ -52,7 +52,7 @@ class OrderService:
|
||||
session, order_item.id, quantity=order_item.quantity + quantity
|
||||
)
|
||||
|
||||
return order_item.quantity + quantity
|
||||
return order_item.quantity
|
||||
|
||||
async def remove_from_cart(
|
||||
self,
|
||||
@@ -162,7 +162,9 @@ class OrderService:
|
||||
|
||||
return CartDTO(items=cart_items, total=total, order_id=order.id)
|
||||
|
||||
async def build_full_cart_dto(self, session: AsyncSession, customer: int):
|
||||
async def build_full_cart_dto(
|
||||
self, session: AsyncSession, customer: int
|
||||
) -> CartDTO:
|
||||
order = await self.order_repo.get_draft_order_by_user(session, customer)
|
||||
|
||||
cart_items = []
|
||||
|
||||
Reference in New Issue
Block a user