Fix: Add grpc in checkData

This commit is contained in:
Br0wnHammer committed 2026-02-23 10:25:00 +05:30
1 parent 42e7bc1dbf
commit 22b33d789c
2 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -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(() => {
@@ -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 });
}