mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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:
@@ -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' }],
|
||||
|
||||
Reference in New Issue
Block a user