commit
edcb753755
|
@ -113,7 +113,7 @@ async function getSmtpConfiguration(db, workspaceId = null, automation) {
|
||||||
params.workspace = workspaceId
|
params.workspace = workspaceId
|
||||||
}
|
}
|
||||||
|
|
||||||
const customConfig = getScopedConfig(db, params)
|
const customConfig = await getScopedConfig(db, params)
|
||||||
|
|
||||||
if (customConfig) {
|
if (customConfig) {
|
||||||
return customConfig
|
return customConfig
|
||||||
|
@ -125,6 +125,7 @@ async function getSmtpConfiguration(db, workspaceId = null, automation) {
|
||||||
port: env.SMTP_PORT,
|
port: env.SMTP_PORT,
|
||||||
host: env.SMTP_HOST,
|
host: env.SMTP_HOST,
|
||||||
secure: false,
|
secure: false,
|
||||||
|
from: env.SMTP_FROM_ADDRESS,
|
||||||
auth: {
|
auth: {
|
||||||
user: env.SMTP_USER,
|
user: env.SMTP_USER,
|
||||||
pass: env.SMTP_PASSWORD,
|
pass: env.SMTP_PASSWORD,
|
||||||
|
|
Loading…
Reference in New Issue