@tiledesk/tiledesk-server 2.10.55 → 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,7 +5,7 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
- # 2.10.55
8
+ # 2.10.56
9
9
  - bug fix: wrong tilebot_endpoint declaration
10
10
 
11
11
  # 2.10.54
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.55",
4
+ "version": "2.10.56",
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 = "http://localhost:" + port + "/modules/tilebot/ext/";;
8
+ let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
9
9
  if (process.env.TILEBOT_ENDPOINT) {
10
10
  TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
11
11
  }
@@ -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 = "http://localhost:" + port + "/modules/tilebot/ext/";;
36
+ let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
37
37
  if (process.env.TILEBOT_ENDPOINT) {
38
38
  TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
39
39
  }
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 = "http://localhost:" + port + "/modules/tilebot/ext/";;
253
+ let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
254
254
  if (process.env.TILEBOT_ENDPOINT) {
255
255
  TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
256
256
  }
@@ -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 = "http://localhost:" + port + "/modules/tilebot/ext/";;
24
+ let TILEBOT_ENDPOINT = "http://localhost:" + port + "/modules/tilebot/ext/";;
25
25
  if (process.env.TILEBOT_ENDPOINT) {
26
26
  TILEBOT_ENDPOINT = process.env.TILEBOT_ENDPOINT + "/ext/"
27
27
  }