mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Added check for Stripe config before migrations
no-issue This stops us from attempting to run the migrations if Stripe has not been configured.
This commit is contained in:
parent
0e955fc84f
commit
f488438ad0
@ -19,6 +19,10 @@ module.exports = class StripeMigrations {
|
||||
}
|
||||
|
||||
async execute() {
|
||||
if (!this.api._configured) {
|
||||
logging.info('Stripe not configured - skipping migrations');
|
||||
return;
|
||||
}
|
||||
await this.populateProductsAndPrices();
|
||||
await this.populateStripePricesFromStripePlansSetting();
|
||||
await this.populateMembersMonthlyPriceIdSettings();
|
||||
|
Loading…
Reference in New Issue
Block a user