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:
Fabien "egg" O'Carroll 2022-01-18 11:18:08 +02:00
parent 0e955fc84f
commit f488438ad0

View File

@ -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();