update see calss
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/descrybe/descrybe-v2/apps/api/internal/aiaudit"
|
||||
"github.com/descrybe/descrybe-v2/apps/api/internal/aiprompts"
|
||||
"github.com/descrybe/descrybe-v2/apps/api/internal/company"
|
||||
"github.com/descrybe/descrybe-v2/apps/api/internal/email"
|
||||
@@ -66,6 +67,8 @@ func (s *Service) Generate(ctx context.Context, companyID, id uuid.UUID, in Gene
|
||||
return Campaign{}, ErrInsufficientCredits
|
||||
}
|
||||
}
|
||||
// Tag the campaign role so admin AI inspector rows are not filed as processing.
|
||||
ctx := aiaudit.WithCall(ctx, aiaudit.CallContext{CompanyID: companyID, Role: aiaudit.RoleCampaign})
|
||||
var completer processing.Completer
|
||||
if s.AI != nil {
|
||||
cplt, _, _, rerr := s.AI.ResolveCompleter(ctx, companyID)
|
||||
|
||||
Reference in New Issue
Block a user