Renamed for cleanliness
parent
225e7aa9c7
commit
b74d17bff7
4
app.js
4
app.js
|
@ -39,8 +39,8 @@ if(baseConfig === false){
|
||||||
|
|
||||||
// Validate the payment gateway config
|
// Validate the payment gateway config
|
||||||
if(ajv.validate(
|
if(ajv.validate(
|
||||||
require(`./config/payment/schema/${config.paymentGateway}Schema`),
|
require(`./config/payment/schema/${config.paymentGateway}`),
|
||||||
require(`./config/payment/config/${config.paymentGateway}.json`)) === false
|
require(`./config/payment/config/${config.paymentGateway}`)) === false
|
||||||
){
|
){
|
||||||
console.log(colors.red(`${config.paymentGateway} config is incorrect: ${ajv.errorsText()}`));
|
console.log(colors.red(`${config.paymentGateway} config is incorrect: ${ajv.errorsText()}`));
|
||||||
process.exit(2);
|
process.exit(2);
|
||||||
|
|
Loading…
Reference in New Issue