@@ -285,7 +285,7 @@ async function syncCredentialSetWebhooks(params: {
285285 basePath : triggerPath ,
286286 credentialSetId,
287287 oauthProviderId,
288- providerConfig : baseConfig as Record < string , any > ,
288+ providerConfig : baseConfig as Record < string , unknown > ,
289289 requestId,
290290 deploymentVersionId,
291291 } )
@@ -558,13 +558,13 @@ export async function saveTriggerWebhooksForDeploy({
558558 await restorePreviousSubscriptions ( )
559559 return { success : false , error : syncResult . error , warnings : collectedWarnings }
560560 }
561- } catch ( error : any ) {
561+ } catch ( error : unknown ) {
562562 logger . error ( `[${ requestId } ] Failed to create webhook for ${ block . id } ` , error )
563563 await restorePreviousSubscriptions ( )
564564 return {
565565 success : false ,
566566 error : {
567- message : error ?. message || 'Failed to save trigger configuration' ,
567+ message : ( error as Error ) ?. message || 'Failed to save trigger configuration' ,
568568 status : 500 ,
569569 } ,
570570 warnings : collectedWarnings ,
@@ -621,7 +621,7 @@ export async function saveTriggerWebhooksForDeploy({
621621 updatedProviderConfig : result . updatedProviderConfig as Record < string , unknown > ,
622622 externalSubscriptionCreated : result . externalSubscriptionCreated ,
623623 } )
624- } catch ( error : any ) {
624+ } catch ( error : unknown ) {
625625 logger . error ( `[${ requestId } ] Failed to create external subscription for ${ block . id } ` , error )
626626 await pendingVerificationTracker . clearAll ( )
627627 for ( const sub of createdSubscriptions ) {
@@ -649,7 +649,7 @@ export async function saveTriggerWebhooksForDeploy({
649649 return {
650650 success : false ,
651651 error : {
652- message : error ?. message || 'Failed to create external subscription' ,
652+ message : ( error as Error ) ?. message || 'Failed to create external subscription' ,
653653 status : 500 ,
654654 } ,
655655 }
@@ -722,7 +722,7 @@ export async function saveTriggerWebhooksForDeploy({
722722 return { success : false , error : pollingError }
723723 }
724724 }
725- } catch ( error : any ) {
725+ } catch ( error : unknown ) {
726726 await pendingVerificationTracker . clearAll ( )
727727 logger . error ( `[${ requestId } ] Failed to insert webhook records` , error )
728728 for ( const sub of createdSubscriptions ) {
@@ -750,7 +750,7 @@ export async function saveTriggerWebhooksForDeploy({
750750 return {
751751 success : false ,
752752 error : {
753- message : error ?. message || 'Failed to save webhook records' ,
753+ message : ( error as Error ) ?. message || 'Failed to save webhook records' ,
754754 status : 500 ,
755755 } ,
756756 }
0 commit comments