@tiledesk/tiledesk-tybot-connector 0.2.129 → 0.2.130-rc2
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 +3 -1
- package/index.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,11 +17,13 @@ available on:
|
|
|
17
17
|
- Added flowError on JSONCondition when result = null
|
|
18
18
|
- Added fix on Filler -->
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
# v0.2.130-rc2
|
|
21
|
+
- index.js /block => added "token": "NO-TOKEN"
|
|
21
22
|
|
|
22
23
|
# v0.2.129 -> test
|
|
23
24
|
- (TiledeskChatbot) sending as "info": "An error occurred while getting locked intent:'" + locked_intent + "'"
|
|
24
25
|
- (DirectivesChatbotPlug) added try catch on new TiledeskClient() => try {tdclient = new TiledeskClient({...})}
|
|
26
|
+
- index.js /block => added "token": "NO-TOKEN"
|
|
25
27
|
|
|
26
28
|
# v0.2.128 -> test
|
|
27
29
|
- Updated axios from 0.27.2 to 1.7.7
|
package/index.js
CHANGED
|
@@ -569,6 +569,7 @@ router.post('/block/:project_id/:bot_id/:block_id', async (req, res) => {
|
|
|
569
569
|
const bot_id = req.params['bot_id'];
|
|
570
570
|
const block_id = req.params['block_id'];
|
|
571
571
|
const body = req.body;
|
|
572
|
+
console.log("/block/ .body:", JSON.stringify(body));
|
|
572
573
|
// console.log('/block/:project_id/:bot_id/:block_id:', project_id, "/", bot_id, "/", block_id);
|
|
573
574
|
// console.log('/block/:project_id/:bot_id/:block_id.body', body);
|
|
574
575
|
|
|
@@ -588,9 +589,10 @@ router.post('/block/:project_id/:bot_id/:block_id', async (req, res) => {
|
|
|
588
589
|
"attributes": {
|
|
589
590
|
"payload": body
|
|
590
591
|
}
|
|
591
|
-
}
|
|
592
|
+
},
|
|
593
|
+
"token": "NO-TOKEN"
|
|
592
594
|
}
|
|
593
|
-
console.log("sendMessageToBot()...");
|
|
595
|
+
console.log("sendMessageToBot()...", JSON.stringify(request));
|
|
594
596
|
sendMessageToBot(process.env.TYBOT_ENDPOINT, request, bot_id, async () => {
|
|
595
597
|
// console.log("Async webhook message sent:\n", request);
|
|
596
598
|
res.status(200).send({"success":true});
|