From 881eac4722d5415c0040567d043a153750f4918f Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Mon, 13 Oct 2025 17:01:15 -0700 Subject: [PATCH] fix tier and remove test interval --- server/private/license/license.ts | 3 +-- src/components/LicenseKeysDataTable.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/private/license/license.ts b/server/private/license/license.ts index 56b744a0..809f5ca9 100644 --- a/server/private/license/license.ts +++ b/server/private/license/license.ts @@ -59,8 +59,7 @@ type TokenPayload = { }; export class License { - // private phoneHomeInterval = 6 * 60 * 60; // 6 hours = 6 * 60 * 60 = 21600 seconds - private phoneHomeInterval = 30; // 30 seconds for testing + private phoneHomeInterval = 6 * 60 * 60; // 6 hours = 6 * 60 * 60 = 21600 seconds private serverBaseUrl = "https://api.fossorial.io"; private validationServerUrl = `${this.serverBaseUrl}/api/v1/license/enterprise/validate`; private activationServerUrl = `${this.serverBaseUrl}/api/v1/license/enterprise/activate`; diff --git a/src/components/LicenseKeysDataTable.tsx b/src/components/LicenseKeysDataTable.tsx index 9c4750b4..0f279ffd 100644 --- a/src/components/LicenseKeysDataTable.tsx +++ b/src/components/LicenseKeysDataTable.tsx @@ -96,7 +96,7 @@ export function LicenseKeysDataTable({ }, cell: ({ row }) => { const tier = row.original.tier; - tier === "enterprise" + return tier === "enterprise" ? t("licenseTierEnterprise") : t("licenseTierPersonal"); }