File tree Expand file tree Collapse file tree
apps/sim/lib/webhooks/providers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,25 +48,7 @@ export const azureDevOpsHandler: WebhookProviderHandler = {
4848 extractIdempotencyId ( body : unknown ) : string | null {
4949 const obj = body as Record < string , unknown > | null
5050 if ( ! obj ) return null
51- const notificationId = obj . notificationId
52- const subscriptionId = obj . subscriptionId
53- if (
54- ( typeof notificationId === 'number' || typeof notificationId === 'string' ) &&
55- typeof subscriptionId === 'string' &&
56- subscriptionId
57- ) {
58- return `azure_devops:${ subscriptionId } :${ notificationId } `
59- }
60- const eventType = obj . eventType
61- const resource = obj . resource as Record < string , unknown > | undefined
62- const resourceId = resource ?. id
63- if (
64- typeof eventType === 'string' &&
65- ( typeof resourceId === 'number' || typeof resourceId === 'string' )
66- ) {
67- return `azure_devops:${ eventType } :${ resourceId } `
68- }
69- return null
51+ return `azure_devops:${ obj . subscriptionId } :${ obj . notificationId } `
7052 } ,
7153
7254 async formatInput ( { body, webhook, requestId } : FormatInputContext ) : Promise < FormatInputResult > {
You can’t perform that action at this time.
0 commit comments