@tiledesk/tiledesk-tybot-connector 2.0.12-rc1 → 2.0.12-rc3
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/index.js +8 -2
- package/logs/app.log +509 -43056
- package/logs/app7.log +38842 -0
- package/logs/app8.log +4779 -0
- package/package.json +1 -1
- package/tiledeskChatbotPlugs/directives/DirReply.js +1 -1
- package/logs/app1.log +0 -41129
- package/logs/app2.log +0 -17135
- package/logs/app3.log +0 -31686
package/index.js
CHANGED
|
@@ -402,8 +402,14 @@ router.post('/block/:project_id/:bot_id/:block_id', async (req, res) => {
|
|
|
402
402
|
|
|
403
403
|
// invoke block
|
|
404
404
|
// unique ID for each execution
|
|
405
|
-
|
|
406
|
-
|
|
405
|
+
let request_id;
|
|
406
|
+
if (body.preloaded_request_id) {
|
|
407
|
+
request_id = body.preloaded_request_id;
|
|
408
|
+
} else {
|
|
409
|
+
const execution_id = uuidv4().replace(/-/g, '');
|
|
410
|
+
request_id = "automation-request-" + project_id + "-" + execution_id;
|
|
411
|
+
|
|
412
|
+
}
|
|
407
413
|
const command = "/#" + block_id;
|
|
408
414
|
let message = {
|
|
409
415
|
payload: {
|