Ghost/ghost/members-api
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
..
lib Added cleanup on startup for old webhooks (#181) 2020-07-20 17:54:22 +02:00
test Store geolocation data during member signup/signin (#128) 2020-02-27 10:29:36 +00:00
.eslintrc.js Added default test dir and eslintrc 2019-05-07 17:35:17 +02:00
index.js Refactored webhook creation (#175) 2020-07-09 16:40:48 +02:00
package.json Pin dependency @types/stripe to 7.13.24 (#176) 2020-07-10 16:37:24 +02:00
tsconfig.json Published new versions 2020-06-18 18:03:46 +02:00