RocketChat/Rocket.Chat

View on GitHub
ee/packages/license/src/validation/isReadyForValidation.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { LicenseManager } from '../license';
import { hasAllDataCounters } from './getCurrentValueForLicenseLimit';

// Can only validate licenses once the workspace URL and the data counter functions are set
export function isReadyForValidation(this: LicenseManager) {
    return Boolean(this.getWorkspaceUrl() && hasAllDataCounters.call(this));
}