From 8f3d074a155d6374686dca7f293de68d18225e3e Mon Sep 17 00:00:00 2001 From: Ricardo Garim Date: Tue, 10 Dec 2024 16:30:50 -0300 Subject: [PATCH] chore: bring back exported default values --- packages/instance-status/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/instance-status/src/index.ts b/packages/instance-status/src/index.ts index 10128c302b62..463f391a1b5b 100644 --- a/packages/instance-status/src/index.ts +++ b/packages/instance-status/src/index.ts @@ -2,8 +2,8 @@ import type { IInstanceStatus } from '@rocket.chat/core-typings'; import { InstanceStatus as InstanceStatusModel } from '@rocket.chat/models'; import { v4 as uuidv4 } from 'uuid'; -const defaultPingInterval = parseInt(String(process.env.MULTIPLE_INSTANCES_PING_INTERVAL)) || 10; -const indexExpire = (parseInt(String(process.env.MULTIPLE_INSTANCES_EXPIRE)) || Math.ceil((defaultPingInterval * 3) / 60)) * 60; +export const defaultPingInterval = parseInt(String(process.env.MULTIPLE_INSTANCES_PING_INTERVAL)) || 10; +export const indexExpire = (parseInt(String(process.env.MULTIPLE_INSTANCES_EXPIRE)) || Math.ceil((defaultPingInterval * 3) / 60)) * 60; const ID = uuidv4(); const id = (): IInstanceStatus['_id'] => ID;