Skip to content

Commit

Permalink
Routing issue solved
Browse files Browse the repository at this point in the history
  • Loading branch information
UO289930 committed Mar 21, 2024
1 parent 03911de commit 8755318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
wget https://raw.githubusercontent.com/arquisoft/wiq_en3a/build_sergiollende/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_en3a/api_migration_node/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_en3a/master/.env
docker compose --profile prod down
docker compose --profile prod up -d --pull always
4 changes: 2 additions & 2 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ app.post('/edituser', async (req, res) => {
}
});

app.get('/GetCapitalsQuestions', async (_req, res) => {
app.get('/getCapitalsQuestions', async (_req, res) => {
try {
// Forward the edit user request to the user service
console.log(process.env.apiServiceUrl);
const wikiResponse = await axios.get(apiServiceUrl + '/wikidata/GetCapitalsQuestions', { timeout: 5000 });
const wikiResponse = await axios.get(apiServiceUrl + '/wikidata/getCapitalsQuestions', { timeout: 5000 });
if (wikiResponse.status !== 200) {
console.error('Error with the wikidata service:', wikiResponse.status);
res.status(wikiResponse.status).json({ error: 'Error with the wikidata service' });
Expand Down

0 comments on commit 8755318

Please sign in to comment.