Skip to content

Commit

Permalink
fix: newsletter production call
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <[email protected]>
  • Loading branch information
cre8 committed Oct 7, 2024
1 parent cab9c3e commit a422850
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions viewer/scripts/newsletter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ if(process.env.EMAIL_STORE){

function getMailConfig() {
if(process.env.NODE_ENV === 'production'){
return {
service: 'gmail',
auth: {
user: process.env.EMAIL_ADDRESS,
pass: process.env.EMAIL_PASSWORD
}
}
return Promise.resolve({
service: 'gmail',
auth: {
user: process.env.EMAIL_ADDRESS,
pass: process.env.EMAIL_PASSWORD
}
});
}
else {
return createTestAccount().then((account) => ({
Expand Down

0 comments on commit a422850

Please sign in to comment.