Skip to content

Commit

Permalink
added TILEBOT_ENDPOINT in getRequestParametersFromChatbot
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Troisi committed Dec 9, 2024
1 parent 6ba479e commit fef582a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/requestService.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ var configGlobal = require('../config/global');
const projectService = require('./projectService');
const axios = require("axios").default;


const apiUrl = process.env.API_URL || configGlobal.apiUrl;
const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext";

let tdCache = new TdCache({
host: process.env.CACHE_REDIS_HOST,
Expand Down Expand Up @@ -2812,7 +2811,7 @@ class RequestService {

return new Promise( async (resolve, reject) => {
await axios({
url: apiUrl + '/modules/tilebot/ext/reserved/parameters/requests/' + request_id,
url: TILEBOT_ENDPOINT + '/reserved/parameters/requests/' + request_id,
headers: {
'Content-Type': 'application/json'
},
Expand Down

0 comments on commit fef582a

Please sign in to comment.