Skip custom fees with defined prefix when deleting #57

Merged
bilal.catic merged 3 commits from skip-custom-fees-with-defined-prefix-when-deleting into master 2019-09-05 10:51:29 +02:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit 63b8e64459 - Show all commits

View File

@@ -123,6 +123,8 @@ const discounts = {
};
const DISCOUNT_PLANS = process.env.DISCOUNT_PLANS.split(',').map(planName => planName.trim()) || [];
const CUSTOM_FEES_PREFIXES = process.env.CUSTOM_FEES_PREFIXES.split(',').map(prefix => prefix.trim()) || [];
const UNPAID_FEE_STATUS = 'not_paid';
module.exports = {
@@ -148,4 +150,5 @@ module.exports = {
discounts,
DISCOUNT_PLANS,
UNPAID_FEE_STATUS,
CUSTOM_FEES_PREFIXES,
};

View File

@@ -37,6 +37,8 @@ ORD_OAUTH_CLIENT_ID=Client ID for this app, created in ORD; Used to obtain OAUTH
ORD_OAUTH_CLIENT_SECRET=Client secret for this app; Used to obtain OAUTH token
ORD_OAUTH_URL=https://identity.officernd.com/oauth/token
CUSTOM_FEES_PREFIXES=Array of prefixes to recognize manually added fees. Comma-separated
#More about pool option : http://docs.sequelizejs.com/class/lib/sequelize.js~Sequelize.html
DB_POOL_MAX_CONNECTIONS=Maximum number of connection in pool (ex. 18)
DB_POOL_ACQUIRE=The maximum time, in milliseconds, that pool will try to get connection before throwing error (ex. 120000)