@tiledesk/tiledesk-server 2.10.54 → 2.10.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
|
7
7
|
|
|
8
|
+
# 2.10.56
|
|
9
|
+
- bug fix: wrong tilebot_endpoint declaration
|
|
10
|
+
|
|
8
11
|
# 2.10.54
|
|
9
12
|
- updated multi-worker to 0.1.19
|
|
10
13
|
- updated queueManagerClass to improves queue reconnect system
|
package/package.json
CHANGED
|
@@ -5,10 +5,12 @@ var configGlobal = require('../../config/global');
|
|
|
5
5
|
|
|
6
6
|
var port = process.env.PORT || '3000';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
|
|
9
|
+
if (process.env.TILEBOT_ENDPOINT) {
|
|
10
|
+
TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
|
|
11
|
+
}
|
|
10
12
|
|
|
11
|
-
winston.
|
|
13
|
+
winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* process.env.API_ENDPOINT --> Internal url of the server inside the cluster
|
|
@@ -33,7 +33,10 @@ const uuidv4 = require('uuid/v4');
|
|
|
33
33
|
var jwt = require('jsonwebtoken');
|
|
34
34
|
|
|
35
35
|
const port = process.env.PORT || '3000';
|
|
36
|
-
|
|
36
|
+
let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
|
|
37
|
+
if (process.env.TILEBOT_ENDPOINT) {
|
|
38
|
+
TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
|
|
39
|
+
}
|
|
37
40
|
winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
|
|
38
41
|
|
|
39
42
|
class RulesTrigger {
|
package/routes/faq_kb.js
CHANGED
|
@@ -250,7 +250,10 @@ 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
|
-
|
|
253
|
+
let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
|
|
254
|
+
if (process.env.TILEBOT_ENDPOINT) {
|
|
255
|
+
TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
|
|
256
|
+
}
|
|
254
257
|
winston.debug("TILEBOT_ENDPOINT: " + TILEBOT_ENDPOINT);
|
|
255
258
|
|
|
256
259
|
let updatedOriginalChabot = await Faq_kb.findByIdAndUpdate(id_faq_kb, {url:TILEBOT_ENDPOINT+forkedChatBotId}, { new: true, upsert: true }).exec();
|
|
@@ -21,7 +21,10 @@ const projectService = require('./projectService');
|
|
|
21
21
|
const axios = require("axios").default;
|
|
22
22
|
|
|
23
23
|
let port = process.env.PORT || '3000';
|
|
24
|
-
|
|
24
|
+
let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
|
|
25
|
+
if (process.env.TILEBOT_ENDPOINT) {
|
|
26
|
+
TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
|
|
27
|
+
}
|
|
25
28
|
|
|
26
29
|
let tdCache = new TdCache({
|
|
27
30
|
host: process.env.CACHE_REDIS_HOST,
|