diff --git a/pm2.config.js b/pm2.config.js index b8be7b6..892f9b4 100644 --- a/pm2.config.js +++ b/pm2.config.js @@ -19,6 +19,7 @@ module.exports = { watch: true, ignore_watch: [ '.git', + 'public', '.circle', '.vscode', 'README.md', diff --git a/src/utils/filtering/financialIndicators.ts b/src/utils/filtering/financialIndicators.ts index d4798ea..8d204b6 100644 --- a/src/utils/filtering/financialIndicators.ts +++ b/src/utils/filtering/financialIndicators.ts @@ -64,8 +64,12 @@ export async function filterFinancialIndicators( const splits = cycle.split(' - '); params = { ...params, - years: splits[0], - yearsTo: splits[1], + years: `${_.get(params, 'years', '')}${ + _.get(params, 'years', '') ? ',' : '' + }${splits[0]}`, + yearsTo: `${_.get(params, 'yearsTo', '')}${ + _.get(params, 'yearsTo', '') ? ',' : '' + }${splits[1]}`, }; }); }