From 22b33d789cad0b5355c64fdee39bb0e5df3a7344 Mon Sep 17 00:00:00 2001 From: Br0wnHammer Date: Thu, 19 Feb 2026 13:16:12 +0530 Subject: [PATCH] Fix: Add grpc in checkData --- client/src/Pages/Uptime/Monitors/index.tsx | 4 +++- server/src/service/business/monitorService.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/Pages/Uptime/Monitors/index.tsx b/client/src/Pages/Uptime/Monitors/index.tsx index 4251e5edf..e660a55f1 100644 --- a/client/src/Pages/Uptime/Monitors/index.tsx +++ b/client/src/Pages/Uptime/Monitors/index.tsx @@ -68,7 +68,9 @@ const UptimeMonitorsPage = () => { // Default to all types when none selected const effectiveTypes = - selectedTypes.length > 0 ? selectedTypes : ["http", "ping", "docker", "port", "game", "grpc"]; + selectedTypes.length > 0 + ? selectedTypes + : ["http", "ping", "docker", "port", "game", "grpc"]; // Build URL for monitors with checks const monitorsWithChecksUrl = useMemo(() => { diff --git a/server/src/service/business/monitorService.ts b/server/src/service/business/monitorService.ts index 2005a4a5d..cafc65a93 100644 --- a/server/src/service/business/monitorService.ts +++ b/server/src/service/business/monitorService.ts @@ -218,7 +218,8 @@ export class MonitorService implements IMonitorService { checksData.monitorType !== "ping" && checksData.monitorType !== "docker" && checksData.monitorType !== "port" && - checksData.monitorType !== "game" + checksData.monitorType !== "game" && + checksData.monitorType !== "grpc" ) { throw new AppError({ message: `${monitor.type} monitors are not supported for uptime details`, status: 400 }); }