fix(purchase): resolve balance payment transaction inconsistency causing Internal Server Error (#81)

This commit is contained in:
Ember Moth
2025-09-29 00:34:18 +08:00
committed by GitHub
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
o.GiftAmount = giftUsed
err = l.svcCtx.OrderModel.Update(l.ctx, o)
err = l.svcCtx.OrderModel.Update(l.ctx, o, db)
if err != nil {
return err
}