@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
package/package.json
CHANGED
@@ -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,
|