@tiledesk/tiledesk-server 2.10.25 → 2.10.26

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,10 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
- # 2.10.24
8
+ # 2.10.26
9
+ - Added missing catch blocks
10
+
11
+ # 2.10.25
9
12
  - updated tybot-connector to 0.2.32
10
13
  - updated twilio-voice--connector to 0.1.10
11
14
 
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.25",
4
+ "version": "2.10.26",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -131,6 +131,8 @@ class MessageActionsInterceptor {
131
131
  // {"updateconversation" : false, messagelabel: {key: "TOUCHING_OPERATOR"}}
132
132
  // );
133
133
 
134
+ }).catch((err) => {
135
+ winston.error("(MessageActionsInterceptor) reroute request error ", err)
134
136
  });
135
137
  }
136
138
 
@@ -78,7 +78,9 @@ devi mandare un messaggio welcome tu altrimenti il bot inserito successivamente
78
78
  //apply only if the status is temp and no bot is available. with agent you must reroute to assign temp request to an agent
79
79
  winston.debug("rerouting");
80
80
  // reroute(request_id, id_project, nobot)
81
- requestService.reroute(message.request.request_id, message.request.id_project, false );
81
+ requestService.reroute(message.request.request_id, message.request.id_project, false ).catch((err) => {
82
+ winston.error("ConciergeBot error reroute: ", err);
83
+ });
82
84
  }
83
85
 
84
86
  // updateStatusWitId(lead_id, id_project, status)
@@ -474,7 +474,9 @@ class RulesTrigger {
474
474
  winston.debug('runAction action id_project: ' + id_project);
475
475
 
476
476
  // route(request_id, departmentid, id_project, nobot) {
477
- requestService.route(request_id, departmentid, id_project);
477
+ requestService.route(request_id, departmentid, id_project).catch((err) => {
478
+ winston.error("Error runAction route: ", err);
479
+ });
478
480
 
479
481
  } catch(e) {
480
482
  winston.error("Error runAction", e);
@@ -510,7 +512,9 @@ class RulesTrigger {
510
512
  winston.debug('runAction action id_project: ' + id_project);
511
513
 
512
514
  // reroute(request_id, id_project, nobot) {
513
- requestService.reroute(request_id, id_project);
515
+ requestService.reroute(request_id, id_project).catch((err) => {
516
+ winston.error("Error runAction on reroute", err);
517
+ });
514
518
 
515
519
  } catch(e) {
516
520
  winston.error("Error runAction", e);
@@ -736,6 +740,8 @@ class RulesTrigger {
736
740
  );
737
741
 
738
742
  // TODO Add typing?
743
+ }).catch((err) => {
744
+ winston.error("Error runAction on reroute", err);
739
745
  })
740
746
 
741
747