Openstatus www.openstatus.dev
6
fork

Configure Feed

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

fix: api monitor put request

+2 -1
+2 -1
apps/server/src/v1/monitors/put.ts
··· 1 1 import { createRoute, z } from "@hono/zod-openapi"; 2 2 3 - import { db, eq } from "@openstatus/db"; 3 + import { and, db, eq } from "@openstatus/db"; 4 4 import { monitor } from "@openstatus/db/src/schema"; 5 5 6 6 import { HTTPException } from "hono/http-exception"; ··· 81 81 headers: input.headers ? JSON.stringify(input.headers) : undefined, 82 82 assertions: assert.length > 0 ? serialize(assert) : undefined, 83 83 }) 84 + .where(eq(monitor.id, Number(_monitor.id))) 84 85 .returning() 85 86 .get(); 86 87