Change features, remove site uptime

This commit is contained in:
Owen
2026-02-05 14:56:07 -08:00
parent 165bbd3584
commit f899326189
9 changed files with 160 additions and 109 deletions

View File

@@ -78,9 +78,9 @@ export async function getOrgUsage(
// Get usage for org
const usageData = [];
const siteUptime = await usageService.getUsage(
const sites = await usageService.getUsage(
orgId,
FeatureId.SITE_UPTIME
FeatureId.SITES
);
const users = await usageService.getUsageDaily(orgId, FeatureId.USERS);
const domains = await usageService.getUsageDaily(
@@ -96,8 +96,8 @@ export async function getOrgUsage(
FeatureId.EGRESS_DATA_MB
);
if (siteUptime) {
usageData.push(siteUptime);
if (sites) {
usageData.push(sites);
}
if (users) {
usageData.push(users);