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
+1 -1
View File
@@ -109,7 +109,7 @@ func (s *conversationService) Create(externalUser openidentity.ExternalUser, cha
var conversation *models.Conversation
created := false
if err := sqls.WithTransaction(func(ctx *sqls.TxContext) error {
customerID, err := CustomerService.EnsureExternalCustomer(ctx.Tx, externalUser)
customerID, err := CustomerService.EnsureExternalCustomer(ctx, externalUser)
if err != nil {
return err
}