Skip to content

Commit cd1f4fc

Browse files
🐛 monitor regions (#1219)
* 🐛 monitor regions * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 407c23a commit cd1f4fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/workflows/src/checker/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Client } from "@upstash/qstash";
33
import { Hono } from "hono";
44
import { z } from "zod";
55

6-
import { and, count, db, eq, isNull, schema } from "@openstatus/db";
6+
import { and, count, db, eq, inArray, isNull, schema } from "@openstatus/db";
77
import { incidentTable, workspace } from "@openstatus/db/src/schema";
88
import {
99
monitorStatusSchema,
@@ -85,6 +85,7 @@ checkerRoute.post("/updateStatus", async (c) => {
8585
and(
8686
eq(schema.monitorStatusTable.monitorId, monitor.id),
8787
eq(schema.monitorStatusTable.status, status),
88+
inArray(schema.monitorStatusTable.region, monitor.regions),
8889
),
8990
)
9091
.get();

0 commit comments

Comments
 (0)