Enhance cron job builder with "Select All" options for time units and remove "custom" option

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/3e43a46b-eb88-40c4-b4c3-92293e8327e6.jpg
This commit is contained in:
alphaeusmote
2025-04-11 03:39:30 +00:00
parent 5a0ed471f3
commit 15347237e7
2 changed files with 89 additions and 6 deletions
+2 -3
View File
@@ -154,8 +154,7 @@ export const scheduleFrequencies = [
"daily",
"weekly",
"monthly",
"yearly",
"custom"
"yearly"
] as const;
export const weekdays = [
@@ -172,7 +171,7 @@ export const weekdays = [
export const scheduleRules = pgTable("schedule_rules", {
id: serial("id").primaryKey(),
ruleId: integer("rule_id").references(() => dynamicGroupRules.id, { onDelete: "cascade" }).notNull(),
frequency: text("frequency").notNull(), // once, minutely, hourly, daily, weekly, monthly, yearly, custom
frequency: text("frequency").notNull(), // once, minutely, hourly, daily, weekly, monthly, yearly
minute: integer("minute"), // 0-59
hour: integer("hour"), // 0-23
dayOfMonth: integer("day_of_month"), // 1-31