Skip to content

Commit

Permalink
fix: add status to orders
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfbl committed Jan 22, 2025
1 parent 0d367e5 commit f0b3924
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rest-server/src/api/v1/users/me/orders/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ pub async fn orders(
'product_id', sp.id,
'photo', sp.photos[1],
'product_name', p.name,
'unit', sp.unit
'unit', sp.unit,
'status', c.status
)) AS products
FROM cart c
JOIN seller_products sp ON c.seller_product_id = sp.id
Expand Down Expand Up @@ -68,7 +69,8 @@ pub async fn order(
'product_id', sp.id,
'photo', sp.photos[1],
'product_name', p.name,
'unit', sp.unit
'unit', sp.unit,
'status', c.status
)) AS products
FROM cart c
JOIN seller_products sp ON c.seller_product_id = sp.id
Expand Down

0 comments on commit f0b3924

Please sign in to comment.