fix(create-backup): missing submit button

This commit is contained in:
Nicolas Meienberger
2025-11-02 16:47:42 +01:00
parent 3e514e61db
commit 44917f3513
2 changed files with 10 additions and 10 deletions

View File

@@ -73,14 +73,6 @@ const createSchedule = async (data: CreateBackupScheduleBody) => {
throw new NotFoundError("Repository not found");
}
const existingSchedule = await db.query.backupSchedulesTable.findFirst({
where: eq(backupSchedulesTable.volumeId, data.volumeId),
});
if (existingSchedule) {
throw new BadRequestError("Volume already has a backup schedule");
}
const nextBackupAt = calculateNextRun(data.cronExpression);
const [newSchedule] = await db