Skip to content

Commit

Permalink
fix: object overwrite other
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkPhoenix2704 committed May 23, 2024
1 parent 75afbf2 commit be61a25
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/nocodb/src/plugins/smtp/SMTP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ export default class SMTP implements IEmailAdapter {
tls: {
rejectUnauthorized: this.input?.rejectUnauthorized,
},
...(this.input?.username ? { auth: { user: this.input?.username } } : {}),
...(this.input?.password ? { auth: { pass: this.input?.password } } : {}),
...(this.input?.username || this.input?.password
? {
auth: {
...(this.input?.username ? { user: this.input?.username } : {}),
...(this.input?.password ? { pass: this.input?.password } : {}),
},
}
: {}),
};

this.transporter = nodemailer.createTransport(config);
Expand Down

1 comment on commit be61a25

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR changes have been deployed. Please run the following command to verify:

docker run -d -p 8888:8080 nocodb/nocodb-timely:0.207.1-pr-8412-20240523-0544

Please sign in to comment.