feat: adds better conditional for max backup size

This commit is contained in:
Andrew Leonard committed 2024-07-16 01:31:12 -04:00
1 parent 4b482488de
commit ff788e3591
1 file changed
+1 -1
+1 -1
View File
@@ -202,7 +202,7 @@ export default {
this.newServerSettings = this.serverSettings ? { ...this.serverSettings } : {}
this.backupsToKeep = this.newServerSettings.backupsToKeep || 2
this.enableBackups = !!this.newServerSettings.backupSchedule
this.maxBackupSize = this.newServerSettings.maxBackupSize || 0
this.maxBackupSize = this.newServerSettings.maxBackupSize === 0 ? 0 : this.newServerSettings.maxBackupSize || 1
this.cronExpression = this.newServerSettings.backupSchedule || '30 1 * * *'
}
},