Skip to content

Commit

Permalink
chore: bring back exported default values
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarim committed Dec 10, 2024
1 parent b9c20d0 commit 8f3d074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/instance-status/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f3d074

Please sign in to comment.