400dba62a9
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. |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
package.json | ||
tsconfig.json |