fix(purchase): resolve balance payment transaction inconsistency causing Internal Server Error (#81)
This commit is contained in:
parent
9777a0c61a
commit
25c7eb3927
@ -484,7 +484,7 @@ func (l *PurchaseCheckoutLogic) balancePayment(u *user.User, o *order.Order) err
|
|||||||
|
|
||||||
// Store gift amount used in order for potential refund tracking
|
// Store gift amount used in order for potential refund tracking
|
||||||
o.GiftAmount = giftUsed
|
o.GiftAmount = giftUsed
|
||||||
err = l.svcCtx.OrderModel.Update(l.ctx, o)
|
err = l.svcCtx.OrderModel.Update(l.ctx, o, db)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user