@tiledesk/tiledesk-tybot-connector 0.1.19 → 0.1.20
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
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# Tiledesk tybotRoute
|
|
2
2
|
|
|
3
|
-
**npm @tiledesk/tiledesk-tybot-connector@0.1.
|
|
3
|
+
**npm @tiledesk/tiledesk-tybot-connector@0.1.20**
|
|
4
4
|
|
|
5
5
|
available on:
|
|
6
6
|
▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
|
|
7
7
|
|
|
8
|
+
### 0.1.20
|
|
9
|
+
- bug fixing on ExtApi endpoint (External chatbots compromised messaging)
|
|
10
|
+
|
|
8
11
|
### 0.1.19
|
|
9
12
|
- fixed action-intent not working
|
|
10
13
|
|
package/index.js
CHANGED
|
@@ -123,11 +123,11 @@ router.post('/ext/:projectId/requests/:requestId/messages', async (req, res) =>
|
|
|
123
123
|
const request_key = "tilebot:" + requestId;
|
|
124
124
|
if (tdcache) {
|
|
125
125
|
request = await tdcache.getJSON(request_key)
|
|
126
|
-
if (log) {console.log("HIT! Request from cache:", request
|
|
126
|
+
if (log) {console.log("HIT! Request from cache:", request);}
|
|
127
127
|
if (!request) {
|
|
128
128
|
if (log) {console.log("!Request from cache", requestId);}
|
|
129
129
|
request = await tdclient.getRequestById(requestId);
|
|
130
|
-
if (log) {console.log("Got request with APIs (after no cache hit)");}
|
|
130
|
+
if (log) {console.log("Got request with APIs (after no cache hit):", request);}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
else {
|
package/package.json
CHANGED
|
@@ -33,9 +33,10 @@ class FillParamsChatbotPlug {
|
|
|
33
33
|
if (this.log) {console.log("all_parameters of requestId:", requestId)}
|
|
34
34
|
const all_parameters = await TiledeskChatbot.allParametersStatic(this.tdcache, requestId);
|
|
35
35
|
if (this.log) {console.log("--got parameters", all_parameters);}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
if (!all_parameters) {
|
|
37
|
+
pipeline.nextplug();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
39
40
|
//all_parameters["tdMessageId"] = message.triggeredByMessageId;
|
|
40
41
|
//console.log("FillParamsChatbotPlug message:", message);
|
|
41
42
|
//console.log("all_parameters[tdMessageId]:", all_parameters["tdMessageId"]);
|