@tiledesk/tiledesk-server 2.9.17 → 2.9.19

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,8 +5,13 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
- # 2.9.17
8
+ # 2.9.18
9
+ - Update: force lastRequestsLimit to be a number
10
+
11
+ # 2.9.18
9
12
  - Added: /requests/count endpoint
13
+ - Updated: sms-connector to 0.1.10
14
+ - Updated: vxml-connector to 0.1.39
10
15
 
11
16
  # 2.9.16
12
17
  - Update: change automatically the content status on re-index
package/app.js CHANGED
@@ -423,12 +423,6 @@ if (process.env.ROUTELOGGER_ENABLED==="true") {
423
423
  }
424
424
 
425
425
  app.get('/', function (req, res) {
426
-
427
- console.log("(/api) req ", req.headers)
428
- console.log("(/api) x-forwarded-for: ", req.headers['x-forwarded-for'], "remote port: ", req.socket.remotePort);
429
- console.log("(/api) X-Real-IP ", req.headers['X-Real-IP'])
430
- console.log("(/api) remoteAddress: ", req.socket.remoteAddress)
431
-
432
426
  res.send('Hello from Tiledesk server. It\'s UP. See the documentation here http://developer.tiledesk.com');
433
427
  });
434
428
 
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.9.17",
4
+ "version": "2.9.19",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -51,8 +51,8 @@
51
51
  "@tiledesk/tiledesk-tybot-connector": "^0.2.96-rc1",
52
52
  "@tiledesk/tiledesk-whatsapp-connector": "^0.1.72",
53
53
  "@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.8",
54
- "@tiledesk/tiledesk-sms-connector": "^0.1.7",
55
- "@tiledesk/tiledesk-vxml-connector": "^0.1.38",
54
+ "@tiledesk/tiledesk-sms-connector": "^0.1.10",
55
+ "@tiledesk/tiledesk-vxml-connector": "^0.1.39",
56
56
  "amqplib": "^0.5.5",
57
57
  "app-root-path": "^3.0.0",
58
58
  "bcrypt-nodejs": "0.0.3",
@@ -40,6 +40,8 @@ var cacheEnabler = require("../services/cacheEnabler");
40
40
  var lastRequestsLimit = process.env.WS_HISTORY_REQUESTS_LIMIT || 100;
41
41
  winston.debug('lastRequestsLimit:' + lastRequestsLimit);
42
42
 
43
+ lastRequestsLimit = Number(lastRequestsLimit);
44
+
43
45
  var messagesLimit = process.env.WS_HISTORY_MESSAGES_LIMIT || 300;
44
46
  winston.debug('messagesLimit:' + messagesLimit);
45
47
 
@@ -196,29 +198,6 @@ class WebSocketServer {
196
198
  var projectId = urlSub[1];
197
199
  winston.debug('projectId: ' + projectId);
198
200
 
199
- if (projectId === "65203e12f8c0cf002cf4110b"
200
- || projectId === "62c3f10152dc7400352bab0d"
201
- || projectId === "66acec0cf7ebf80013d67974"
202
- || projectId === "6613ff078890fc0013ad3c3a"
203
- || projectId === "6565047fdd64fd001323f37c"
204
- || projectId === "656054000410fa00132e5dcc") {
205
-
206
- console.log('(WebSocket) WSS onSubscribeCallback - ProjectID ' + projectId);
207
- console.log("(WebSocket) req ", req.headers)
208
- console.log("(WebSocket) x-forwarded-for: ", req.headers['x-forwarded-for'], "remote port: ", req.socket.remotePort);
209
- console.log("(/api) X-Real-IP ", req.headers['X-Real-IP'])
210
- console.log("(WebSocket) remoteAddress: ", req.socket.remoteAddress)
211
-
212
-
213
- try {
214
- console.log("req: ", JSON.stringify(req))
215
- } catch(err) {
216
- console.log("Unable to stringify request")
217
- console.log("req: ", req)
218
- }
219
-
220
- }
221
-
222
201
  let q = Project.findOne({ _id: projectId, status: 100 })
223
202
 
224
203
  if (cacheEnabler.project) {