fix: allow null status_code in ingest schema; check HTTP status in post_result

This commit is contained in:
M1
2026-03-18 13:28:42 +04:00
parent 5037222846
commit 6e1d642c77
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -97,8 +97,8 @@ export const ingest = new Elysia()
monitor_id: t.String(),
scheduled_at: t.Optional(t.Nullable(t.String())),
jitter_ms: t.Optional(t.Nullable(t.Number())),
status_code: t.Optional(t.Number()),
latency_ms: t.Optional(t.Number()),
status_code: t.Optional(t.Nullable(t.Number())),
latency_ms: t.Optional(t.Nullable(t.Number())),
up: t.Boolean(),
error: t.Optional(t.Nullable(t.String())),
cert_expiry_days: t.Optional(t.Nullable(t.Number())),