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"])