diff --git a/src/autostake/Health.mjs b/src/autostake/Health.mjs index 90c4d110..a1da61c1 100644 --- a/src/autostake/Health.mjs +++ b/src/autostake/Health.mjs @@ -4,7 +4,7 @@ import { createLogger } from '../utils/Helpers.mjs' class Health { constructor(config, opts) { - const { address, uuid, name, apiKey, timeout, gracePeriod } = config || {} + const { address, apiAddress, uuid, name, apiKey, timeout, gracePeriod } = config || {} const { dryRun, networkName } = opts || {} this.address = address || 'https://hc-ping.com' this.apiAddress = apiAddress || 'https://healthchecks.io'