mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
fix(create-backup): missing submit button
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user