keep name after schedule completion or recreation (#1728)

This commit is contained in:
Shaan Khosla
2023-09-24 12:37:49 -04:00
committed by GitHub
parent abd2d424a6
commit 3c4f62bd51
2 changed files with 6 additions and 9 deletions

View File

@@ -274,15 +274,6 @@ export async function updateSchedule({
if (schedule.rule) {
throw new Error('You cannot change the rule of a schedule');
}
if (schedule.name) {
if (await checkIfScheduleExists(schedule.name, schedule.id)) {
throw new Error('There is already a schedule with this name');
}
} else {
schedule.name = null;
}
// We need the rule if there are conditions
let rule;
// This must be outside the `batchMessages` call because we change

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [shaankhosla]
---
Keep schedule name after completion or recreation