Skip to content

Commit 0b2a637

Browse files
fix(enrichment): require work email domain mapping
1 parent 510c528 commit 0b2a637

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

apps/sim/enrichments/readiness.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ describe('getEnrichmentReadiness', () => {
1212
const readiness = getEnrichmentReadiness(workEmailEnrichment, { fullName: 'John Doe' })
1313

1414
expect(readiness.ready).toBe(false)
15-
expect(readiness.missingInputs.map((input) => input.id)).toEqual([
16-
'companyDomain',
17-
'linkedinUrl',
18-
])
15+
expect(readiness.missingInputs.map((input) => input.id)).toEqual(['companyDomain'])
1916
})
2017

2118
it('accepts either a name with company domain or a LinkedIn URL', () => {
@@ -67,10 +64,7 @@ describe('getEnrichmentReadiness', () => {
6764
})
6865

6966
expect(readiness.ready).toBe(false)
70-
expect(readiness.missingInputs.map((input) => input.id)).toEqual([
71-
'companyDomain',
72-
'linkedinUrl',
73-
])
67+
expect(readiness.missingInputs.map((input) => input.id)).toEqual(['linkedinUrl'])
7468
})
7569

7670
it('formats select-backed row inputs before checking provider request builders', () => {

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)