From b74d17bff7af427dabc72f5a9d05e7fe76dd95ae Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Fri, 20 Mar 2020 20:17:21 +1030 Subject: [PATCH] Renamed for cleanliness --- app.js | 4 ++-- config/payment/schema/{adyenSchema.json => adyen.json} | 0 .../schema/{authorizenetSchema.json => authorizenet.json} | 0 .../schema/{blockonomicsSchema.json => blockonomics.json} | 0 config/payment/schema/{instoreSchema.json => instore.json} | 0 config/payment/schema/{paypalSchema.json => paypal.json} | 0 config/payment/schema/{stripeSchema.json => stripe.json} | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename config/payment/schema/{adyenSchema.json => adyen.json} (100%) rename config/payment/schema/{authorizenetSchema.json => authorizenet.json} (100%) rename config/payment/schema/{blockonomicsSchema.json => blockonomics.json} (100%) rename config/payment/schema/{instoreSchema.json => instore.json} (100%) rename config/payment/schema/{paypalSchema.json => paypal.json} (100%) rename config/payment/schema/{stripeSchema.json => stripe.json} (100%) diff --git a/app.js b/app.js index 324fc78..15fc0ec 100644 --- a/app.js +++ b/app.js @@ -39,8 +39,8 @@ if(baseConfig === false){ // Validate the payment gateway config if(ajv.validate( - require(`./config/payment/schema/${config.paymentGateway}Schema`), - require(`./config/payment/config/${config.paymentGateway}.json`)) === false + require(`./config/payment/schema/${config.paymentGateway}`), + require(`./config/payment/config/${config.paymentGateway}`)) === false ){ console.log(colors.red(`${config.paymentGateway} config is incorrect: ${ajv.errorsText()}`)); process.exit(2); diff --git a/config/payment/schema/adyenSchema.json b/config/payment/schema/adyen.json similarity index 100% rename from config/payment/schema/adyenSchema.json rename to config/payment/schema/adyen.json diff --git a/config/payment/schema/authorizenetSchema.json b/config/payment/schema/authorizenet.json similarity index 100% rename from config/payment/schema/authorizenetSchema.json rename to config/payment/schema/authorizenet.json diff --git a/config/payment/schema/blockonomicsSchema.json b/config/payment/schema/blockonomics.json similarity index 100% rename from config/payment/schema/blockonomicsSchema.json rename to config/payment/schema/blockonomics.json diff --git a/config/payment/schema/instoreSchema.json b/config/payment/schema/instore.json similarity index 100% rename from config/payment/schema/instoreSchema.json rename to config/payment/schema/instore.json diff --git a/config/payment/schema/paypalSchema.json b/config/payment/schema/paypal.json similarity index 100% rename from config/payment/schema/paypalSchema.json rename to config/payment/schema/paypal.json diff --git a/config/payment/schema/stripeSchema.json b/config/payment/schema/stripe.json similarity index 100% rename from config/payment/schema/stripeSchema.json rename to config/payment/schema/stripe.json