Skip to content

Commit

Permalink
fix: cycle filter bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Nov 13, 2024
1 parent 8426b04 commit b45f4b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions pm2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
watch: true,
ignore_watch: [
'.git',
'public',
'.circle',
'.vscode',
'README.md',
Expand Down
8 changes: 6 additions & 2 deletions src/utils/filtering/financialIndicators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]}`,
};
});
}
Expand Down

0 comments on commit b45f4b3

Please sign in to comment.