File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,7 @@ export const handleWebhook = async (
5757 const transformedData = transformResult . data !
5858
5959 // Process the webhook event
60- const processResult = await processWebhookEvent (
61- webhook ,
62- transformedData ,
63- webhookId
64- )
65-
66- if ( ! processResult . success ) {
67- res
68- . status ( processResult . status || 500 )
69- . json ( { error : processResult . error } )
70- return
71- }
60+ await processWebhookEvent ( webhook , transformedData , webhookId )
7261
7362 res . status ( 200 ) . json ( { success : true } )
7463 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ export async function processWebhookEvent(
1919 } )
2020
2121 if ( ! message ) {
22- logger . warn ( `Message not found for messageId: ${ transformedData . messageId } ` )
2322 return {
2423 success : false ,
2524 status : 404 ,
You can’t perform that action at this time.
0 commit comments