Skip to content

Commit 2da8015

Browse files
fix(enrichment): require work email company domain (#6531)
* fix(enrichment): require work email company domain * fix(enrichment): show exhausted cascades as not found
1 parent 51df824 commit 2da8015

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

apps/sim/background/workflow-column-execution.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ async function runWorkflowAndWriteTerminal(
582582
await enrichmentRegistry.importCrossingProvenance(inputProvenance, enrichInputs, {
583583
trusted: true,
584584
})
585-
const { result, cost, error, detail } = await runEnrichment(enrichment, enrichInputs, {
585+
const { result, cost, detail } = await runEnrichment(enrichment, enrichInputs, {
586586
tableId,
587587
rowId,
588588
workspaceId,
@@ -604,20 +604,6 @@ async function runWorkflowAndWriteTerminal(
604604
return 'error'
605605
}
606606

607-
// Every provider that ran errored (auth / rate-limit / outage) — surface
608-
// it rather than writing a blank cell that looks like "no data found".
609-
if (error) {
610-
await writeState({
611-
status: 'error',
612-
executionId,
613-
jobId: null,
614-
workflowId: statusId,
615-
error,
616-
enrichmentDetails: detail,
617-
})
618-
return 'error'
619-
}
620-
621607
/**
622608
* Record the triggerer or system fallback as actor while charging the
623609
* exact workspace payer. Billing failures do not fail a successful cell.

apps/sim/enrichments/work-email/work-email.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const workEmailEnrichment: EnrichmentConfig = {
2020
icon: Mail,
2121
inputs: [
2222
{ id: 'fullName', name: 'Full name', type: 'string', required: true },
23-
{ id: 'companyDomain', name: 'Company domain', type: 'string' },
23+
{ id: 'companyDomain', name: 'Company domain', type: 'string', required: true },
2424
{ id: 'linkedinUrl', name: 'LinkedIn URL', type: 'string' },
2525
],
2626
outputs: [{ id: 'email', name: 'email', type: 'string' }],

0 commit comments

Comments
 (0)