fix
This commit is contained in:
1 parent
feebf7d3c1
commit
486502852e
41 files changed
+1311
-259
No files matched your search
@@ -411,5 +411,10 @@ func (s *Server) assertV1ProcessGates(ctx context.Context, companyID uuid.UUID,
|
||||
RequiresAI: billing.ProcessingTypeRequiresAI(processingType) || billing.ProcessingTypeIsEmailCampaignAI(processingType),
|
||||
RequiresEPREL: billing.ProcessingTypeRequiresEPREL(processingType),
|
||||
}
|
||||
if rates, err := s.Billing.ContentRates(ctx, companyID); err == nil {
|
||||
if units, err := billing.ContentDebitUnits(nil, processingType, rates); err == nil {
|
||||
opts.CreditsPerProduct = float64(units) / 10000
|
||||
}
|
||||
}
|
||||
return s.Billing.AssertCanStartProcessing(ctx, companyID, batchSize, opts)
|
||||
}
|
||||
Reference in new issue
Block a user