mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-12 23:34:34 -05:00
Use "backupInterval" to disable auto backups (#608)
Gets rid of unnecessary setting
This commit is contained in:
@@ -56,7 +56,8 @@ object ProtoBackupExport : ProtoBackupBase() {
|
||||
fun scheduleAutomatedBackupTask() {
|
||||
HAScheduler.deschedule(backupSchedulerJobId)
|
||||
|
||||
if (!serverConfig.automatedBackups) {
|
||||
val areAutomatedBackupsDisabled = serverConfig.backupInterval == 0
|
||||
if (areAutomatedBackupsDisabled) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user