MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / buildRecurringPayload

Function buildRecurringPayload

frontend/src/utils/forms/RecordingUtils.js:130–138  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

128});
129
130export const buildRecurringPayload = (values) => ({
131 channel: values.channel_id,
132 days_of_week: (values.days_of_week || []).map(Number),
133 start_time: toTimeString(values.start_time),
134 end_time: toTimeString(values.end_time),
135 start_date: toDateString(values.start_date),
136 end_date: toDateString(values.end_date),
137 name: values.rule_name?.trim() || '',
138});
139
140export const singleFormValidators = {
141 channel_id: isNotEmpty('Select a channel'),

Callers 3

handleRecurringSubmitFunction · 0.90
updateRecurringRuleFunction · 0.90

Calls 2

toTimeStringFunction · 0.90
toDateStringFunction · 0.85

Tested by

no test coverage detected