[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor

fix(api): reject non-numeric notification id path params master

A GET /v1/notification/{id} with a non-numeric id passed ParamsSchema's z.string().min(1) check, then Number(id) produced NaN which the libSQL client rejects before the query reaches Turso, surfacing as a 500 and a "Failed query" Sentry event. incidents and maintenances routes already validate id with /^\d+$/; apply the same regex here. Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>


+1
1 changed file