File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
apps/sim/lib/webhooks/providers Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,19 @@ export const vercelHandler: WebhookProviderHandler = {
127127 throw new Error ( userFriendlyMessage )
128128 }
129129
130+ const externalId = responseBody . id as string | undefined
131+ if ( ! externalId ) {
132+ throw new Error ( 'Vercel webhook creation succeeded but no webhook ID was returned' )
133+ }
134+
130135 logger . info (
131136 `[${ requestId } ] Successfully created webhook in Vercel for webhook ${ webhook . id } .` ,
132- { vercelWebhookId : responseBody . id }
137+ { vercelWebhookId : externalId }
133138 )
134139
135140 return {
136141 providerConfigUpdates : {
137- externalId : responseBody . id ,
142+ externalId,
138143 webhookSecret : ( responseBody . secret as string ) || '' ,
139144 } ,
140145 }
You can’t perform that action at this time.
0 commit comments