@tiledesk/tiledesk-server 2.10.48 → 2.10.49

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,7 +5,10 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
- # 2.10.47
8
+ # 2.10.49
9
+ - changed TILEBOT_ENDPOINT
10
+
11
+ # 2.10.48
9
12
  - updated tybot-connector to 0.2.146
10
13
 
11
14
  # 2.10.44
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.10.48",
4
+ "version": "2.10.49",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -5,7 +5,7 @@ var configGlobal = require('../../config/global');
5
5
 
6
6
  var port = process.env.PORT || '3000';
7
7
 
8
- const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
8
+ const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
9
9
  winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
10
10
 
11
11
  winston.info("Tilebot endpoint: " + TILEBOT_ENDPOINT);
@@ -33,7 +33,7 @@ const uuidv4 = require('uuid/v4');
33
33
  var jwt = require('jsonwebtoken');
34
34
 
35
35
  const port = process.env.PORT || '3000';
36
- const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
36
+ const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
37
37
  winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
38
38
 
39
39
  class RulesTrigger {
package/routes/faq_kb.js CHANGED
@@ -250,7 +250,7 @@ router.put('/:faq_kbid/publish', roleChecker.hasRole('admin'), async (req, res)
250
250
  botEvent.emit('faqbot.update', updatedForkedChabot);
251
251
 
252
252
  const port = process.env.PORT || '3000';
253
- const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
253
+ const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
254
254
  winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
255
255
 
256
256
  let updatedOriginalChabot = await Faq_kb.findByIdAndUpdate(id_faq_kb, {url:TILEBOT_ENDPOINT+forkedChatBotId}, { new: true, upsert: true }).exec();
@@ -21,7 +21,7 @@ const projectService = require('./projectService');
21
21
  const axios = require("axios").default;
22
22
 
23
23
  let port = process.env.PORT || '3000';
24
- const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT || "http://localhost:" + port+ "/modules/tilebot/ext/";
24
+ const TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/" || "http://localhost:" + port+ "/modules/tilebot/ext/";
25
25
 
26
26
  let tdCache = new TdCache({
27
27
  host: process.env.CACHE_REDIS_HOST,