Ignoring prefixed fee names

This commit is contained in:
Senad Uka
2019-09-05 14:52:10 +02:00
parent 12e94c30e8
commit cf0f96eb83
3 changed files with 20 additions and 5 deletions

View File

@@ -123,6 +123,10 @@ 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())
.filter(prefix => prefix && prefix.length ? prefix.length > 0 : false) || [];
const UNPAID_FEE_STATUS = 'not_paid';
module.exports = {
@@ -148,4 +152,5 @@ module.exports = {
discounts,
DISCOUNT_PLANS,
UNPAID_FEE_STATUS,
CUSTOM_FEES_PREFIXES,
};