Skip to content

Commit

Permalink
fix: remove code that was setting mail_url to 'undefined' (#30055)
Browse files Browse the repository at this point in the history
  • Loading branch information
tapiarafael committed Aug 11, 2023
1 parent 87570d0 commit 6eea189
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pink-zoos-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fix the code that was setting email URL to an invalid value when SMTP was not set
2 changes: 1 addition & 1 deletion apps/meteor/app/lib/server/startup/settingsOnLoadSMTP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ settings.watchMultiple(['SMTP_Host', 'SMTP_Port', 'SMTP_Username', 'SMTP_Passwor
SystemLogger.info('Updating process.env.MAIL_URL');

if (!settings.get('SMTP_Host')) {
process.env.MAIL_URL = undefined;
delete process.env.MAIL_URL;
return;
}

Expand Down

0 comments on commit 6eea189

Please sign in to comment.