@tiledesk/tiledesk-server 2.10.49 → 2.10.50
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +5 -0
- package/package.json +2 -2
- package/pubmodules/rules/conciergeBot.js +1 -1
- package/routes/department.js +4 -5
- package/routes/request.js +3 -3
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.10.50
|
9
|
+
- updated tybot-connector to 0.2.147
|
10
|
+
- removed logs
|
11
|
+
- fix /department/operators bug (Circular Dependency on JSON Stringify)
|
12
|
+
|
8
13
|
# 2.10.49
|
9
14
|
- changed TILEBOT_ENDPOINT
|
10
15
|
|
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.
|
4
|
+
"version": "2.10.50",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"@tiledesk/tiledesk-rasa-connector": "^1.0.10",
|
49
49
|
"@tiledesk/tiledesk-telegram-connector": "^0.1.14",
|
50
50
|
"@tiledesk/tiledesk-train-jobworker": "^0.0.11",
|
51
|
-
"@tiledesk/tiledesk-tybot-connector": "^0.2.
|
51
|
+
"@tiledesk/tiledesk-tybot-connector": "^0.2.147",
|
52
52
|
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.76",
|
53
53
|
"@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.11",
|
54
54
|
"@tiledesk/tiledesk-sms-connector": "^0.1.11",
|
@@ -79,7 +79,7 @@ devi mandare un messaggio welcome tu altrimenti il bot inserito successivamente
|
|
79
79
|
winston.debug("rerouting");
|
80
80
|
// reroute(request_id, id_project, nobot)
|
81
81
|
requestService.reroute(message.request.request_id, message.request.id_project, false ).catch((err) => {
|
82
|
-
winston.error("ConciergeBot error reroute: "
|
82
|
+
winston.error("ConciergeBot error reroute: " + err);
|
83
83
|
});
|
84
84
|
}
|
85
85
|
|
package/routes/department.js
CHANGED
@@ -151,12 +151,11 @@ router.get('/:departmentid/operators', [passport.authenticate(['basic', 'jwt'],
|
|
151
151
|
|
152
152
|
|
153
153
|
var context = {req:req};
|
154
|
-
|
155
|
-
|
154
|
+
var operatorsResult = await departmentService.getOperators(req.params.departmentid, req.projectid, req.query.nobot, disableWebHookCall, context);
|
155
|
+
winston.debug("Getting department operators operatorsResult", operatorsResult);
|
156
156
|
|
157
|
-
|
158
|
-
|
159
|
-
return res.json(operatorsResult);
|
157
|
+
delete operatorsResult.context;
|
158
|
+
return res.status(200).send(operatorsResult);
|
160
159
|
|
161
160
|
});
|
162
161
|
|
package/routes/request.js
CHANGED
@@ -478,15 +478,15 @@ router.put('/:requestid/replace', async (req, res) => {
|
|
478
478
|
}
|
479
479
|
|
480
480
|
id = "bot_" + chatbot._id;
|
481
|
-
winston.
|
481
|
+
winston.verbose("Chatbot found: " + id);
|
482
482
|
}
|
483
483
|
|
484
484
|
let participants = [];
|
485
485
|
participants.push(id);
|
486
|
-
winston.
|
486
|
+
winston.verbose("participants to be set: ", participants);
|
487
487
|
|
488
488
|
requestService.setParticipantsByRequestId(req.params.requestid, req.projectid, participants).then((updatedRequest) => {
|
489
|
-
winston.
|
489
|
+
winston.debug("SetParticipant response: ", updatedRequest);
|
490
490
|
res.status(200).send(updatedRequest);
|
491
491
|
}).catch((err) => {
|
492
492
|
winston.error("Error setting participants ", err);
|