We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c68804 commit d84b7e8Copy full SHA for d84b7e8
apps/sim/app/api/tools/docusign/route.ts
@@ -196,6 +196,11 @@ async function handleSendEnvelope(
196
documentId: '1',
197
},
198
]
199
+ } else if (((status as string) || 'sent') === 'sent') {
200
+ return NextResponse.json(
201
+ { success: false, error: 'A document file is required to send an envelope' },
202
+ { status: 400 }
203
+ )
204
}
205
206
const response = await fetch(`${apiBase}/envelopes`, {
0 commit comments