[NOT FINISHED] delete fees in chunks

This commit is contained in:
Bilal Catic
2019-10-04 18:52:41 +02:00
parent 5a07b74ae2
commit bc56ed3f03
3 changed files with 35 additions and 6 deletions

View File

@@ -135,7 +135,10 @@ const CUSTOM_FEES_PREFIXES = process.env.CUSTOM_FEES_PREFIXES.split(',')
const UNPAID_FEE_STATUS = 'not_paid';
const ALLOW_SENDING_FEES = parseInt(process.env.ALLOW_SENDING_FEES_FOR_CURRENT_AND_FUTURE_MONTHS) ? true : false;
const ALLOW_SENDING_FEES = !!parseInt(process.env.ALLOW_SENDING_FEES_FOR_CURRENT_AND_FUTURE_MONTHS);
const MAX_FEES_TO_DELETE = parseInt(process.env.MAX_FEES_TO_DELETE) || 10;
const FEES_DELETE_DELAY = parseInt(process.env.FEES_DELETE_DELAY) || 0;
module.exports = {
VALID_CSV_HEADERS,
@@ -162,4 +165,6 @@ module.exports = {
UNPAID_FEE_STATUS,
CUSTOM_FEES_PREFIXES,
ALLOW_SENDING_FEES,
MAX_FEES_TO_DELETE,
FEES_DELETE_DELAY
};