Rename HEARTBEATS_ENDPOINT to HEARTBEAT_ENDPOINT (#190)

To match the env var of deployment code
This commit is contained in:
Kamil Kisiela 2022-06-27 13:56:00 +02:00 committed by GitHub
parent f060d953ec
commit d2a0f9d4e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -41,10 +41,10 @@ export async function main() {
const errorCachingInterval = ms('10m');
const stopHeartbeats =
typeof process.env.HEARTBEATS_ENDPOINT === 'string' && process.env.HEARTBEATS_ENDPOINT.length > 0
typeof process.env.HEARTBEAT_ENDPOINT === 'string' && process.env.HEARTBEAT_ENDPOINT.length > 0
? startHeartbeats({
enabled: true,
endpoint: process.env.HEARTBEATS_ENDPOINT,
endpoint: process.env.HEARTBEAT_ENDPOINT,
intervalInMS: 20_000,
onError: server.log.error,
isReady: readiness,

View file

@ -53,10 +53,10 @@ async function main() {
});
const stopHeartbeats =
typeof process.env.HEARTBEATS_ENDPOINT === 'string' && process.env.HEARTBEATS_ENDPOINT.length > 0
typeof process.env.HEARTBEAT_ENDPOINT === 'string' && process.env.HEARTBEAT_ENDPOINT.length > 0
? startHeartbeats({
enabled: true,
endpoint: process.env.HEARTBEATS_ENDPOINT,
endpoint: process.env.HEARTBEAT_ENDPOINT,
intervalInMS: 20_000,
onError: server.log.error,
isReady: readiness,

View file

@ -44,10 +44,10 @@ async function main() {
});
const stopHeartbeats =
typeof process.env.HEARTBEATS_ENDPOINT === 'string' && process.env.HEARTBEATS_ENDPOINT.length > 0
typeof process.env.HEARTBEAT_ENDPOINT === 'string' && process.env.HEARTBEAT_ENDPOINT.length > 0
? startHeartbeats({
enabled: true,
endpoint: process.env.HEARTBEATS_ENDPOINT,
endpoint: process.env.HEARTBEAT_ENDPOINT,
intervalInMS: 20_000,
onError: server.log.error,
isReady: readiness,