Renamed for cleanliness

master
Mark Moffat 2020-03-20 20:17:21 +10:30
parent 225e7aa9c7
commit b74d17bff7
7 changed files with 2 additions and 2 deletions

4
app.js
View File

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