Skip to content

Commit 8c68804

Browse files
committed
fix(docusign): use canonical param documentFile instead of raw subBlock IDs
1 parent 2e1e6a5 commit 8c68804

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

apps/sim/blocks/blocks/docusign.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -272,22 +272,13 @@ export const DocuSignBlock: BlockConfig<DocuSignResponse> = {
272272
config: {
273273
tool: (params) => `docusign_${params.operation}`,
274274
params: (params) => {
275-
const {
276-
oauthCredential,
277-
operation,
278-
uploadDocument,
279-
documentRef,
280-
listEnvelopeStatus,
281-
...rest
282-
} = params
275+
const { oauthCredential, operation, documentFile, listEnvelopeStatus, ...rest } = params
283276

284277
const cleanParams: Record<string, unknown> = {
285278
oauthCredential,
286279
}
287280

288-
const file = normalizeFileInput(params.uploadDocument || params.documentRef, {
289-
single: true,
290-
})
281+
const file = normalizeFileInput(documentFile, { single: true })
291282
if (file) {
292283
cleanParams.file = file
293284
}
@@ -302,7 +293,7 @@ export const DocuSignBlock: BlockConfig<DocuSignResponse> = {
302293
cleanParams.status = rest.envelopeStatus
303294
}
304295

305-
const excludeKeys = ['uploadDocument', 'documentRef', 'envelopeStatus']
296+
const excludeKeys = ['envelopeStatus']
306297
for (const [key, value] of Object.entries(rest)) {
307298
if (value !== undefined && value !== null && value !== '' && !excludeKeys.includes(key)) {
308299
cleanParams[key] = value

0 commit comments

Comments
 (0)