|
|
@@ -181,4 +181,12 @@ serve(wrapHandler('webhook-shoprenter-uninstall', async (req) => {
|
|
|
{ status: 200, headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
|
|
|
)
|
|
|
|
|
|
+ } catch (error) {
|
|
|
+ console.error('[ShopRenter] Uninstall webhook error:', error)
|
|
|
+ // Still return 200 to prevent retries
|
|
|
+ return new Response(
|
|
|
+ JSON.stringify({ message: 'Internal error' }),
|
|
|
+ { status: 200, headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
|
|
|
+ )
|
|
|
+ }
|
|
|
}))
|