mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
feat: added cron job to remove healthcheck logs older than 12h
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import {useMemo} from "react"
|
||||
import {Card} from "@/components/ui/card"
|
||||
import {HealthcheckLog} from "@/db/schema/15_healthcheck-log"
|
||||
import {useIsMobile} from "@/hooks/use-mobile";
|
||||
|
||||
type HealthStatus = "healthy" | "degraded" | "down" | "unknown"
|
||||
|
||||
@@ -105,11 +106,12 @@ export const HealthCheckGraph = ({logs}: Props) => {
|
||||
return buildTimeSeries(logs)
|
||||
}, [logs])
|
||||
|
||||
const isMobile = useIsMobile()
|
||||
|
||||
|
||||
const hourLabels = useMemo(() => {
|
||||
if (data.length === 0) return []
|
||||
|
||||
const isMobile = window.innerWidth <= 768
|
||||
|
||||
return data
|
||||
.map((item, index) => ({ item, index }))
|
||||
|
||||
Reference in New Issue
Block a user