@@ -128,36 +128,6 @@ export const zoomHandler: WebhookProviderHandler = {
128128 return null
129129 } ,
130130
131- extractIdempotencyId ( body : unknown ) : string | null {
132- const obj = body as Record < string , unknown >
133- const event = obj . event
134- const ts = obj . event_ts
135- if ( typeof event !== 'string' || ts === undefined || ts === null ) {
136- return null
137- }
138- const payload = obj . payload as Record < string , unknown > | undefined
139- const inner = payload ?. object as Record < string , unknown > | undefined
140- const participant =
141- inner ?. participant &&
142- typeof inner . participant === 'object' &&
143- ! Array . isArray ( inner . participant )
144- ? ( inner . participant as Record < string , unknown > )
145- : null
146- const participantStable =
147- ( typeof participant ?. user_id === 'string' && participant . user_id ) ||
148- ( typeof participant ?. id === 'string' && participant . id ) ||
149- ( typeof participant ?. email === 'string' && participant . email ) ||
150- ( typeof participant ?. join_time === 'string' && participant . join_time ) ||
151- ( typeof participant ?. leave_time === 'string' && participant . leave_time ) ||
152- ''
153- const stable =
154- participantStable ||
155- ( typeof inner ?. uuid === 'string' && inner . uuid ) ||
156- ( inner ?. id !== undefined && inner . id !== null ? String ( inner . id ) : '' ) ||
157- ''
158- return `zoom:${ event } :${ String ( ts ) } :${ stable } `
159- } ,
160-
161131 async matchEvent ( { webhook : wh , workflow, body, requestId, providerConfig } : EventMatchContext ) {
162132 const triggerId = providerConfig . triggerId as string | undefined
163133 const obj = body as Record < string , unknown >
0 commit comments