feat: adds better conditional for max backup size

This commit is contained in:
Andrew Leonard 2024-07-16 01:31:12 -04:00
parent 4b482488de
commit ff788e3591
No known key found for this signature in database

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 * * *'
}
},