From fc96e0d613ce8683a84e8602cdf08d959ec8f1f3 Mon Sep 17 00:00:00 2001 From: nate Date: Sun, 22 Mar 2026 06:23:46 +0400 Subject: [PATCH] update: default interval - plan limit --- apps/api/src/routes/monitors.ts | 2 +- apps/web/src/views/partials/monitor-form.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/routes/monitors.ts b/apps/api/src/routes/monitors.ts index e481b99..de5d98d 100644 --- a/apps/api/src/routes/monitors.ts +++ b/apps/api/src/routes/monitors.ts @@ -36,7 +36,7 @@ export const monitors = new Elysia({ prefix: "/monitors" }) } // Enforce minimum interval for plan - const interval = body.interval_s ?? 30; + const interval = body.interval_s ?? limits.minIntervalS; if (interval < limits.minIntervalS) { set.status = 400; return { error: `Minimum interval for ${plan} plan is ${limits.minIntervalS}s` }; diff --git a/apps/web/src/views/partials/monitor-form.ejs b/apps/web/src/views/partials/monitor-form.ejs index c00201a..59484f2 100644 --- a/apps/web/src/views/partials/monitor-form.ejs +++ b/apps/web/src/views/partials/monitor-form.ejs @@ -69,7 +69,7 @@