mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
refactor bcc TEST_EMAIL
This commit is contained in:
parent
1d4151443a
commit
0562df200b
@ -14,6 +14,7 @@ import {
|
||||
MOTHERSHIP_MIGRATIONS_DIR,
|
||||
MOTHERSHIP_PORT,
|
||||
MOTHERSHIP_SEMVER,
|
||||
TEST_EMAIL,
|
||||
_MOTHERSHIP_APP_ROOT,
|
||||
mkContainerHomePath,
|
||||
} from '../../../../../core'
|
||||
@ -56,6 +57,7 @@ export async function mothership(cfg: MothershipConfig) {
|
||||
DISCORD_STREAM_CHANNEL_URL: DISCORD_STREAM_CHANNEL_URL(),
|
||||
DISCORD_HEALTH_CHANNEL_URL: DISCORD_HEALTH_CHANNEL_URL(),
|
||||
DISCORD_ALERT_CHANNEL_URL: DISCORD_ALERT_CHANNEL_URL(),
|
||||
TEST_EMAIL: TEST_EMAIL(),
|
||||
}
|
||||
dbg(env)
|
||||
|
||||
|
@ -34,6 +34,9 @@ routerAdd(
|
||||
name: $app.settings().meta.senderName,
|
||||
},
|
||||
to: [{ address: to }],
|
||||
bcc: [process.env.TEST_EMAIL]
|
||||
.filter((e) => !!e)
|
||||
.map((e) => ({ address: e })),
|
||||
subject: subject,
|
||||
html: body,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user