@tiledesk/tiledesk-tybot-connector 0.2.14 → 0.2.15

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
@@ -5,6 +5,9 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ ### v0.2.15
9
+ - replyto in send email fix
10
+
8
11
  ### v0.2.14
9
12
  - pre-release
10
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -75,13 +75,15 @@ class DirSendEmail {
75
75
  const filled_subject = filler.fill(action.subject, requestVariables);
76
76
  const filled_text = filler.fill(action.text, requestVariables);
77
77
  const filled_to = filler.fill(action.to, requestVariables);
78
- const reply_to = filler.fill(action.reply_to, requestVariables);
79
- const message_echo = await this.tdclient.sendEmail({
78
+ const reply_to = filler.fill(action.replyto, requestVariables);
79
+ const message = {
80
80
  subject: filled_subject,
81
81
  text: filled_text,
82
82
  to: filled_to,
83
83
  replyto: reply_to
84
- });
84
+ }
85
+ console.log("email message:", JSON.stringify(message));
86
+ const message_echo = await this.tdclient.sendEmail(message);
85
87
  if (this.log) {console.log("email sent. filled_subject:", filled_subject);}
86
88
  if (this.log) {console.log("email sent. filled_text:", filled_text);}
87
89
  if (this.log) {console.log("email sent. filled_to:", filled_to);}