Ghost/ghost/members-api/lib
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
..
stripe Added cleanup on startup for old webhooks (#181) 2020-07-20 17:54:22 +02:00
common.js Added subscription update middleware (#107) 2019-12-12 15:19:36 +07:00
geolocation.js Store geolocation data during member signup/signin (#128) 2020-02-27 10:29:36 +00:00
metadata.js Refactored webhook creation (#175) 2020-07-09 16:40:48 +02:00
tokens.js Updated members-api to use magic-link 2019-09-03 15:35:04 +08:00
users.js Refactored webhook creation (#175) 2020-07-09 16:40:48 +02:00