From 0c9ed3e257871bfa66fa34161003f3c6d80435ee Mon Sep 17 00:00:00 2001 From: itwrx Date: Thu, 15 May 2025 08:50:17 -0500 Subject: [PATCH] fix issue #1 --- post_handlers/reminder_post_handler.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post_handlers/reminder_post_handler.nim b/post_handlers/reminder_post_handler.nim index 930ff3d..9e207ff 100644 --- a/post_handlers/reminder_post_handler.nim +++ b/post_handlers/reminder_post_handler.nim @@ -15,7 +15,7 @@ proc reminderCreatePostHandler*() = #vInput("subject", @["string", "max:175"]) vInput("message", @["required", "string", "max:255"]) vInput("notify_via", @["required", "string", "max:5"]) - vInput("repeats", @["required", "integer", "max:1"]) + vInput("repeats", @["integer", "max:1"]) vInput("repeat_freq", @["required_with:repeats", "string", "max:10"]) vInput("weekly_on", @["required_when:repeat_freq:equals:week", "string", "max:10"]) vInput("monthly_on_day", @["required_when:repeat_freq:equals:month:without:monthly_on_week", "integer", "max:31"]) @@ -96,7 +96,7 @@ proc reminderUpdatePostHandler*() = #vInput("subject", @["string", "max:175"]) vInput("message", @["required", "string", "max:255"]) vInput("notify_via", @["required", "string", "max:5"]) - vInput("repeats", @["required", "integer", "max:1"]) + vInput("repeats", @["integer", "max:1"]) vInput("repeat_freq", @["required_with:repeats", "string", "max:10"]) vInput("weekly_on", @["required_when:repeat_freq:equals:week", "string", "max:10"]) vInput("monthly_on_day", @["required_when:repeat_freq:equals:month:without:monthly_on_week", "must_unset_with:monthly_on_week", "must_unset_with:monthly_on_weekday", "integer", "max:31"])