Skip to content

Commit 8a95a38

Browse files
committed
fix(integrations): type the infisical approval fields as nullable and narrow the ketch test body
1 parent 9cde982 commit 8a95a38

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎apps/sim/blocks/blocks/ketch.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ describe('KetchBlock', () => {
4343
},
4444
collectedAt: 1,
4545
})
46+
if (!body || typeof body === 'string' || body instanceof FormData) {
47+
throw new Error('Expected a JSON body')
48+
}
4649

4750
expect(body.purposes).toEqual({
4851
analytics: { allowed: 'true', legalBasisCode: 'consent_optin' },

‎apps/sim/tools/infisical/types.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ interface InfisicalActor {
8585
}
8686

8787
export interface InfisicalSecretApproval {
88-
id: string
89-
policyId: string
90-
slug: string
88+
id: string | null
89+
policyId: string | null
90+
slug: string | null
9191
status: string | null
9292
hasMerged: boolean | null
93-
folderId: string
94-
createdAt: string
95-
updatedAt: string
93+
folderId: string | null
94+
createdAt: string | null
95+
updatedAt: string | null
9696
}
9797

9898
interface InfisicalSecret {

0 commit comments

Comments
 (0)