From bfd022e760a4e42c8b59b26098626549fa8227b4 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Thu, 20 May 2021 21:37:03 +0530 Subject: [PATCH] Cleaned default prices on stripe connect no refs Cleans up changes to create prices on stripe connect with increase in timeout to allow stripe migrations to run in backend --- ghost/admin/app/components/gh-members-payments-setting.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/components/gh-members-payments-setting.js b/ghost/admin/app/components/gh-members-payments-setting.js index 25841b8a3e..cddc650b2f 100644 --- a/ghost/admin/app/components/gh-members-payments-setting.js +++ b/ghost/admin/app/components/gh-members-payments-setting.js @@ -288,7 +288,7 @@ export default Component.extend({ } ); this.product.set('stripePrices', stripePrices); - yield timeout(1000); + yield timeout(3000); const updatedProduct = yield this.product.save(); const monthlyPrice = this.getActivePrice(updatedProduct.stripePrices, 'month', 500, 'usd'); const yearlyPrice = this.getActivePrice(updatedProduct.stripePrices, 'year', 5000, 'usd'); @@ -296,9 +296,9 @@ export default Component.extend({ this.settings.set('membersMonthlyPriceId', monthlyPrice.id); this.settings.set('membersYearlyPriceId', yearlyPrice.id); response = yield this.settings.save(); - this.set('membersStripeOpen', false); - this.set('stripeConnectSuccess', true); } + this.set('membersStripeOpen', false); + this.set('stripeConnectSuccess', true); return response; } catch (error) { if (error.payload && error.payload.errors) {