diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49eb617..7d89c64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 691d0ec..527fdd5 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -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' });