add ENV variable and load to the system to use custom prefixes

This commit is contained in:
Bilal Catic
2019-09-05 09:31:35 +02:00
parent 0704e8d1e1
commit 63b8e64459
2 changed files with 5 additions and 0 deletions

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,
};