fix(customer_service): update EnsureExternalCustomer to use TxContext

This commit is contained in:
mlogclub
2026-04-28 23:03:06 +08:00
parent 21a08f3cb1
commit 28d1cfc160
4 changed files with 44 additions and 24 deletions
@@ -57,7 +57,7 @@ func (s *customerSessionService) Exchange(channel *models.Channel, externalUser
}
var customerID int64
if err := sqls.WithTransaction(func(ctx *sqls.TxContext) error {
id, err := CustomerService.EnsureExternalCustomer(ctx.Tx, externalUser)
id, err := CustomerService.EnsureExternalCustomer(ctx, externalUser)
if err != nil {
return err
}