mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update backend/src/server/createServer.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
parent
49e0606d16
commit
fc706bc030
@ -78,7 +78,7 @@ const createServer = async (
|
||||
logger.info(
|
||||
`running in environment PRODUCTION = ${CONFIG.PRODUCTION} with EMAIL_TEST_MODUS = ${CONFIG.EMAIL_TEST_MODUS} ...`,
|
||||
)
|
||||
if (CONFIG.PRODUCTION && CONFIG.TEST_MODUS === 'true') {
|
||||
if (CONFIG.PRODUCTION && CONFIG.EMAIL_TEST_MODUS === 'true') {
|
||||
logger.error(`### RUNNING ENVIRONMENT Production IN TEST_MODE IS NOT ALLOWED ###`)
|
||||
throw new Error(`### RUNNING ENVIRONMENT Production IN TEST_MODE IS NOT ALLOWED ###`)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user