Skip to content
Snippets Groups Projects
Commit 8fee840e authored by meskio's avatar meskio :tent:
Browse files

Ignore the error if product not there

As we are changing the list of products
parent 63fa908d
Branches
No related tags found
No related merge requests found
......@@ -118,10 +118,7 @@ func (d *DB) UpdateOrder(memberNum int, id int, order *Order) error {
if err != nil {
return err
}
total, err := calculateOrderPurchaseTotal(transaction.OrderPurchase, order.Products)
if err != nil {
return err
}
total, _ := calculateOrderPurchaseTotal(transaction.OrderPurchase, order.Products)
err = updateOrderPurchase(tx, t.MemberNum, &dbOrder.Transactions[i], total, t.OrderPurchase)
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment