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:
parent
6c1081df23
commit
27fe7ed61c
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ module.exports = class StripeService {
|
|||
stripe_coupon_id: null
|
||||
});
|
||||
await this.webhookManager.stop();
|
||||
|
||||
this.api.configure(null);
|
||||
}
|
||||
|
||||
async configure(config) {
|
||||
|
|
Loading…
Add table
Reference in a new issue