Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: cron
mxkasked8e096f42598
diff --git a/apps/web/src/app/api/checker/cron/_cron.ts b/apps/web/src/app/api/checker/cron/_cron.tsindex 2a0778bc1..be806ec7c 100644--- a/apps/web/src/app/api/checker/cron/_cron.ts+++ b/apps/web/src/app/api/checker/cron/_cron.ts@@ -133,7 +133,7 @@ const createCronTask = async ({body: row.body,headers: row.headers,status: status,- assertions: row.assertions,+ assertions: row.assertions ? JSON.parse(row.assertions) : null,};const newTask: google.cloud.tasks.v2beta3.ITask = {diff --git a/apps/web/src/app/api/checker/schema.ts b/apps/web/src/app/api/checker/schema.tsindex e9e0dd473..a6b05fe48 100644--- a/apps/web/src/app/api/checker/schema.ts+++ b/apps/web/src/app/api/checker/schema.ts@@ -1,5 +1,6 @@import { z } from "zod";+import { base } from "@openstatus/assertions";import { monitorMethods, monitorStatus } from "@openstatus/db/src/schema";export const payloadSchema = z.object({@@ -11,7 +12,7 @@ export const payloadSchema = z.object({url: z.string(),cronTimestamp: z.number(),status: z.enum(monitorStatus),- assertions: z.string().nullable(),+ assertions: z.array(base).nullable(),});export type Payload = z.infer<typeof payloadSchema>;