0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

🐛 Fixed StripeAPI disconnection

refs https://github.com/TryGhost/Toolbox/issues/214

- After disconnecting Stripe API the `_configured` flag stayed as `true`, causing behaviors as if Stripe was still connnected.
- The `api.configure` method was never reachable when disconnecting Stripe API, thus causes hanging "configured === false" state inside of the StripeAPI wrapper
This commit is contained in:
Naz 2022-02-18 15:47:23 +07:00 committed by naz
parent 6c1081df23
commit 27fe7ed61c

View file

@ -64,6 +64,8 @@ module.exports = class StripeService {
stripe_coupon_id: null
});
await this.webhookManager.stop();
this.api.configure(null);
}
async configure(config) {