Skip to content

Commit 61b54d2

Browse files
committed
some adjusts
1 parent ab61557 commit 61b54d2

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

components/elastic_email/actions/add-contact/add-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import app from "../../elastic_email.app.mjs";
66
export default {
77
key: "elastic_email-add-contact",
88
name: "Add Contact to Mailing List",
9-
description: "Adds a new contact to a mailing list. [See the documentation]()",
9+
description: "Adds a new contact to a mailing list. [See the documentation](https://elasticemail.com/developers/api-documentation/rest-api#operation/contactsPost)",
1010
version: "0.0.1",
1111
type: "action",
1212
props: {

components/elastic_email/actions/send-email/send-email.mjs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ import { ENCODING_OPTIONS } from "../../common/constants.mjs";
22
import { parseObject } from "../../common/utils.mjs";
33
import app from "../../elastic_email.app.mjs";
44

5-
/**FALTA TESTAR */
6-
/**FALTA TESTAR */
7-
/**FALTA TESTAR */
8-
/**FALTA TESTAR */
9-
/**FALTA TESTAR */
10-
/**FALTA TESTAR */
11-
/**FALTA TESTAR */
125
export default {
136
key: "elastic_email-send-email",
147
name: "Send Email",
@@ -105,8 +98,8 @@ export default {
10598
})),
10699
Content: {
107100
From: this.from,
108-
Body: this.body,
109-
Merge: this.merge,
101+
Body: parseObject(this.body),
102+
Merge: parseObject(this.merge),
110103
ReplyTo: this.replyTo,
111104
Subject: this.subject,
112105
TemplateName: this.templateName,

components/elastic_email/actions/unsubscribe-contact/unsubscribe-contact.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import app from "../../elastic_email.app.mjs";
44
export default {
55
key: "elastic_email-unsubscribe-contact",
66
name: "Unsubscribe Contact",
7-
description: "Unsubscribes a contact from future emails. [See the documentation]()",
7+
description: "Unsubscribes a contact from future emails. [See the documentation](https://elasticemail.com/developers/api-documentation/rest-api#operation/suppressionsUnsubscribesPost)",
88
version: "0.0.1",
99
type: "action",
1010
props: {
@@ -22,7 +22,7 @@ export default {
2222
$,
2323
data: parsedEmails,
2424
});
25-
$.export("$summary", `Unsubscribed ${this.parsedEmails.length} contact(s) successfully`);
25+
$.export("$summary", `Unsubscribed ${parsedEmails.length} contact(s) successfully`);
2626
return response;
2727
},
2828
};

0 commit comments

Comments
 (0)