Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: restore gateway heartbeat comment

Devin AIb47df0e9097b
diff --git a/backend/src/services/telemetry/telemetry-dal.ts b/backend/src/services/telemetry/telemetry-dal.ts
index 090177f57c..d19235582e 100644
--- a/backend/src/services/telemetry/telemetry-dal.ts
+++ b/backend/src/services/telemetry/telemetry-dal.ts
@@ -131,6 +131,7 @@ export const telemetryDALFactory = (db: TDbClient) => {
});
// Count active gateways from both legacy (Gateway) and V2 (GatewayV2) tables.
+ // Legacy gateways heartbeat every ~3 minutes; use a 5-minute window to avoid undercounting.
const legacyActiveResult = (
await db(TableName.Gateway)
.whereNotNull("heartbeat")