fix(enrichment): require work email company domain (#6531)

* fix(enrichment): require work email company domain

* fix(enrichment): show exhausted cascades as not found
This commit is contained in:
Theodore Li
2026-08-12 20:40:07 -04:00
committed by GitHub
parent 51df824451
commit 2da80150b8
2 changed files with 2 additions and 16 deletions
@@ -582,7 +582,7 @@ async function runWorkflowAndWriteTerminal(
await enrichmentRegistry.importCrossingProvenance(inputProvenance, enrichInputs, {
trusted: true,
})
const { result, cost, error, detail } = await runEnrichment(enrichment, enrichInputs, {
const { result, cost, detail } = await runEnrichment(enrichment, enrichInputs, {
tableId,
rowId,
workspaceId,
@@ -604,20 +604,6 @@ async function runWorkflowAndWriteTerminal(
return 'error'
}
// Every provider that ran errored (auth / rate-limit / outage) — surface
// it rather than writing a blank cell that looks like "no data found".
if (error) {
await writeState({
status: 'error',
executionId,
jobId: null,
workflowId: statusId,
error,
enrichmentDetails: detail,
})
return 'error'
}
/**
* Record the triggerer or system fallback as actor while charging the
* exact workspace payer. Billing failures do not fail a successful cell.
@@ -20,7 +20,7 @@ export const workEmailEnrichment: EnrichmentConfig = {
icon: Mail,
inputs: [
{ id: 'fullName', name: 'Full name', type: 'string', required: true },
{ id: 'companyDomain', name: 'Company domain', type: 'string' },
{ id: 'companyDomain', name: 'Company domain', type: 'string', required: true },
{ id: 'linkedinUrl', name: 'LinkedIn URL', type: 'string' },
],
outputs: [{ id: 'email', name: 'email', type: 'string' }],