fix(pockethost): health check requires discord channel url

This commit is contained in:
Ben Allfree 2024-08-03 04:30:56 -07:00
parent 4e138cf276
commit 1c2f35f222

View File

@ -16,6 +16,9 @@ export const checkHealth = async () => {
const { cpu, drive } = osu
const DISCORD_URL = DISCORD_HEALTH_CHANNEL_URL()
if (!DISCORD_URL) {
throw new Error('DISCORD_HEALTH_CHANNEL_URL not set')
}
const { dbg, error, info, warn } = LoggerService().create('edge-health.ts')