Skip to content

Commit e989d3f

Browse files
authored
fix: rename content_id for attachments (#559)
1 parent ec8cbd0 commit e989d3f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/common/interfaces/email-api-options.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface EmailApiAttachment {
55
filename?: string | false | undefined;
66
path?: string;
77
content_type?: string;
8-
inline_content_id?: string;
8+
content_id?: string;
99
}
1010

1111
export interface EmailApiOptions {

src/common/utils/parse-email-to-api-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function parseAttachments(
1212
filename: attachment.filename,
1313
path: attachment.path,
1414
content_type: attachment.contentType,
15-
inline_content_id: attachment.inlineContentId,
15+
content_id: attachment.contentId,
1616
}));
1717
}
1818

src/emails/interfaces/create-email-options.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export interface Attachment {
124124
* Optional content ID for the attachment, to be used as a reference in the HTML content.
125125
* If set, this attachment will be sent as an inline attachment and you can reference it in the HTML content using the `cid:` prefix.
126126
*/
127-
inlineContentId?: string;
127+
contentId?: string;
128128
}
129129

130130
export type Tag = {

0 commit comments

Comments
 (0)