Skip to content
Snippets Groups Projects
Unverified Commit 6eea189e authored by Rafael Tapia's avatar Rafael Tapia Committed by GitHub
Browse files

fix: remove code that was setting mail_url to 'undefined' (#30055)

parent 87570d0f
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
Fix the code that was setting email URL to an invalid value when SMTP was not set
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment