Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: cron

mxkaske d8e096f4 0a12e3fb

+3 -2
+1 -1
apps/web/src/app/api/checker/cron/_cron.ts
··· 133 133 body: row.body, 134 134 headers: row.headers, 135 135 status: status, 136 - assertions: row.assertions, 136 + assertions: row.assertions ? JSON.parse(row.assertions) : null, 137 137 }; 138 138 139 139 const newTask: google.cloud.tasks.v2beta3.ITask = {
+2 -1
apps/web/src/app/api/checker/schema.ts
··· 1 1 import { z } from "zod"; 2 2 3 + import { base } from "@openstatus/assertions"; 3 4 import { monitorMethods, monitorStatus } from "@openstatus/db/src/schema"; 4 5 5 6 export const payloadSchema = z.object({ ··· 11 12 url: z.string(), 12 13 cronTimestamp: z.number(), 13 14 status: z.enum(monitorStatus), 14 - assertions: z.string().nullable(), 15 + assertions: z.array(base).nullable(), 15 16 }); 16 17 17 18 export type Payload = z.infer<typeof payloadSchema>;