From 5d70ab7a97339688535a55ebaf87c82b578e6838 Mon Sep 17 00:00:00 2001 From: Maximilian Kaske Date: Mon, 16 Dec 2024 19:18:23 +0100 Subject: [PATCH] chore: hard-code global stats --- apps/web/src/components/marketing/stats.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/marketing/stats.tsx b/apps/web/src/components/marketing/stats.tsx index eddca4bf25..894525ef3e 100644 --- a/apps/web/src/components/marketing/stats.tsx +++ b/apps/web/src/components/marketing/stats.tsx @@ -6,8 +6,8 @@ import { OSTinybird } from "@openstatus/tinybird"; const tb = new OSTinybird(env.TINY_BIRD_API_KEY); export async function Stats() { - const tbLastHourStats = await tb.homeStats({ period: "1h" }); - const tbWeeklyStats = await tb.homeStats({ period: "1w" }); + // const tbLastHourStats = await tb.homeStats({ period: "1h" }); + // const tbWeeklyStats = await tb.homeStats({ period: "1w" }); // const totalActiveMonitors = await api.monitor.getTotalActiveMonitors.query(); return ( @@ -15,13 +15,15 @@ export async function Stats() {

- {numberFormatter(tbWeeklyStats?.data?.[0]?.count || 0)} + {/* {numberFormatter(tbWeeklyStats?.data?.[0]?.count || 0)} */} + {numberFormatter(26_000_000)}

Weekly pings

- {numberFormatter(tbLastHourStats?.data?.[0]?.count || 0)} + {/* {numberFormatter(tbLastHourStats?.data?.[0]?.count || 0)} */} + {numberFormatter(155_000)}

Pings in the last hour