[WIP] workers works! (lol) pages+migration todo
This commit is contained in:
1 parent
45d86424b2
commit
e050065a3c
15 files changed
+329
-154
No files matched your search
+1
-1
@@ -61,7 +61,7 @@ export default async function handler(req: NextRequest): Promise<Response> {
|
||||
|
||||
const state = JSON.parse(stateStr) as MonitorState
|
||||
const monitorIncidentHistory = state.incident?.[monitorId]
|
||||
const hasLatencyData = Boolean(state.latency?.[monitorId]?.recent?.length)
|
||||
const hasLatencyData = Boolean(state.latency?.[monitorId]?.length)
|
||||
|
||||
if (!monitorIncidentHistory || monitorIncidentHistory.length === 0 || !hasLatencyData) {
|
||||
return new Response(JSON.stringify(errorBadge(label, 'unknown')), {
|
||||
|
||||
Reference in new issue
Block a user