diff --git a/bin/www.js b/bin/www.js index 5a42ffc1..6d01c3a8 100644 --- a/bin/www.js +++ b/bin/www.js @@ -40,7 +40,7 @@ cluster.on('exit', (worker, code, signal) => { cluster.fork(); }); const ntfyStartupConfig = configFunctions.getProperty('application.ntfyStartup'); -if (ntfyStartupConfig) { +if (ntfyStartupConfig !== undefined) { const topic = ntfyStartupConfig.topic; const server = ntfyStartupConfig.server; const ntfyStartupMessage = { @@ -55,7 +55,7 @@ if (ntfyStartupConfig) { message: 'Application Shut Down', tags: ['arrow_down'] }; - if (server) { + if (server !== undefined) { ntfyStartupMessage.server = server; ntfyShutdownMessage.server = server; } diff --git a/bin/www.ts b/bin/www.ts index 346ad59e..66e6e91e 100644 --- a/bin/www.ts +++ b/bin/www.ts @@ -67,7 +67,7 @@ cluster.on('exit', (worker, code, signal) => { const ntfyStartupConfig = configFunctions.getProperty('application.ntfyStartup') -if (ntfyStartupConfig) { +if (ntfyStartupConfig !== undefined) { const topic = ntfyStartupConfig.topic const server = ntfyStartupConfig.server @@ -85,7 +85,7 @@ if (ntfyStartupConfig) { tags: ['arrow_down'] } - if (server) { + if (server !== undefined) { ntfyStartupMessage.server = server ntfyShutdownMessage.server = server }