The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/lib/utils/isOverLicenseLimits.ts

12 lines
327 B

import type { LicenseLimitKind } from '@rocket.chat/core-typings';
type Limits = Record<
LicenseLimitKind,
{
max: number;
value?: number;
}
>;
export const isOverLicenseLimits = (limits: Limits): boolean =>
Object.values(limits).some((limit) => limit.value !== undefined && limit.max > 0 && limit.value > limit.max);