Skip to content

Commit

Permalink
feat(mail-factory): improve optional parameters handling
Browse files Browse the repository at this point in the history
Updated the sendTemplateMail method to make subject and to parameters optional for better flexibility.
  • Loading branch information
schettn committed Mar 13, 2024
1 parent b35a70a commit 9d61c92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pylon/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .pylon/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/services/mail-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export class MailFactory {
static async sendTemplateMail(
id: string,
envelope?: {
subject: string;
to: string[];
subject?: string;
to?: string[];
replyTo?: string;
},
values?: {
Expand Down

0 comments on commit 9d61c92

Please sign in to comment.