fix(customer): sync conversation name callback
This commit is contained in:
@@ -136,7 +136,6 @@ func (s *customerService) EnsureExternalCustomer(ctx *sqls.TxContext, externalUs
|
||||
}
|
||||
|
||||
ctx.RegisterCallback(func() {
|
||||
go func() {
|
||||
if strs.IsNotBlank(externalUser.ExternalName) {
|
||||
if err := s.syncConversationCustomerName(sqls.DB(), identity.CustomerID, externalUser.ExternalName, nil, now); err != nil {
|
||||
slog.Error("sync conversation customer name failed",
|
||||
@@ -146,7 +145,6 @@ func (s *customerService) EnsureExternalCustomer(ctx *sqls.TxContext, externalUs
|
||||
)
|
||||
}
|
||||
}
|
||||
}()
|
||||
})
|
||||
return identity.CustomerID, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user