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
Showing only changes of commit 50cd3f56b0 - Show all commits

View File

@@ -123,7 +123,9 @@ 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 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';