Skip to content

Commit

Permalink
Fix issues with simulator url
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelavega committed Jan 29, 2025
1 parent 93e1cc2 commit 0d5b077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
context: .
file: ./docker/Dockerfile
tags: |
fiware/biz-ecosystem-logic-proxy:10.0.0-rc3
fiware/biz-ecosystem-logic-proxy:10.0.0-rc4
push: ${{ github.ref == 'refs/heads/feat/extended-pricing' }}

- name: Image digest
Expand Down
4 changes: 4 additions & 0 deletions controllers/simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ function simulator() {
return res.status(500).send('Internal Server Error');
}

if (!targetUrl.endsWith('/')) {
targetUrl += '/';
}

axios({
method: req.method,
url: targetUrl + 'billing/previewPrice',
Expand Down

0 comments on commit 0d5b077

Please sign in to comment.