Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
goriiin committed Dec 22, 2024
1 parent 15d7df1 commit bad81a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/repository/orders/create_order_from_cart.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func (r *OrdersRepo) CreateOrderFromCart(ctx context.Context, orderData *order.O

const insertProductQuery = `
INSERT INTO product_orders (id, order_id, product_id, option_id, count, delivery_date)
VALUES ($1, $2, $3, $4, $5, $6)
ON CONFLICT DO NOTHING;
SELECT $1, $2, $3, $4, $5, $6
WHERE $5 > 0;
`

for _, p := range orderData.Products {
Expand Down

0 comments on commit bad81a9

Please sign in to comment.