Ghost/ghost
Fabien 'egg' O'Carroll 400dba62a9 Added cleanup on startup for old webhooks (#181)
refs https://github.com/TryGhost/Ghost/issues/12061

Due to a bug in Ghost webhooks are now created with a trailing "/" which
meant that the previous webhooks to that (without a slash) was never
removed.

This results in users receiving emails from stripe about failed webhook
delivery, which is not good at all.

This fix lists out the webhooks and finds (if present) the webhook which
matches the current URL, minus the trailing slash. If found it will then
attempt to delete that webhook thus stopping the emails from Stripe.

I've added a note to remove this code as it should only ever need to run
once, and can be removed for the Ghost release after these changes.
2020-07-20 17:54:22 +02:00
..
magic-link Update dependency @types/node to v12.12.50 2020-07-10 17:06:24 +00:00
members-api Added cleanup on startup for old webhooks (#181) 2020-07-20 17:54:22 +02:00
members-csv Published new versions 2020-07-08 20:23:05 +12:00
members-ssr Update dependency @types/node to v12.12.50 2020-07-10 17:06:24 +00:00