@tiledesk/tiledesk-server 2.4.5 → 2.4.6
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/package.json
CHANGED
@@ -328,6 +328,7 @@ class RulesTrigger {
|
|
328
328
|
|
329
329
|
var intentName = action.parameters.intentName;
|
330
330
|
winston.debug('runAction action intentName: ' + intentName);
|
331
|
+
|
331
332
|
|
332
333
|
var botId = action.parameters.botId;
|
333
334
|
winston.debug('runAction action botId: ' + botId);
|
@@ -367,6 +368,11 @@ class RulesTrigger {
|
|
367
368
|
winston.debug('runAction action payload: ', payload);
|
368
369
|
|
369
370
|
|
371
|
+
if (message && payload.text) {
|
372
|
+
payload.text = message;
|
373
|
+
winston.debug('forcing payload text to : ' + payload.text);
|
374
|
+
}
|
375
|
+
|
370
376
|
delete payload.request.snapshot
|
371
377
|
|
372
378
|
var json = {timestamp: Date.now(), payload: payload};
|