mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Refactor recurring notification handling in ScheduledMaintenance and ScheduledMaintenanceTemplate models
This commit is contained in:
parent
51ff018a61
commit
8f7cac7108
@ -53,6 +53,7 @@ RunCron(
|
||||
labels: true,
|
||||
isRecurringEvent: true,
|
||||
recurringInterval: true,
|
||||
sendSubscriberNotificationsOnBeforeTheEvent: true,
|
||||
},
|
||||
});
|
||||
|
||||
@ -132,6 +133,7 @@ RunCron(
|
||||
scheduledMaintenanceEvent.title = recurringTemplate.title!;
|
||||
scheduledMaintenanceEvent.description = recurringTemplate.description!;
|
||||
scheduledMaintenanceEvent.labels = recurringTemplate.labels!;
|
||||
scheduledMaintenanceEvent.sendSubscriberNotificationsOnBeforeTheEvent = recurringTemplate.sendSubscriberNotificationsOnBeforeTheEvent!;
|
||||
|
||||
const eventscheduledTime: Date = recurringTemplate.scheduleNextEventAt!;
|
||||
|
||||
|
@ -458,7 +458,7 @@ const ScheduledMaintenancesTable: FunctionComponent<ComponentProps> = (
|
||||
/>
|
||||
);
|
||||
},
|
||||
required: true,
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
field: {
|
||||
|
@ -200,7 +200,7 @@ const ScheduledMaintenanceView: FunctionComponent<
|
||||
/>
|
||||
);
|
||||
},
|
||||
required: true,
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
field: {
|
||||
|
@ -253,7 +253,7 @@ export const getTemplateFormFields: GetTemplateFormFieldsFunction = (data: {
|
||||
/>
|
||||
);
|
||||
},
|
||||
required: true,
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
field: {
|
||||
|
Loading…
Reference in New Issue
Block a user