don't force backups, update eventstore

This commit is contained in:
Barry Deen
2024-10-08 11:15:00 -04:00
parent aa59597297
commit b67900726e
4 changed files with 18 additions and 4 deletions

View File

@@ -22,6 +22,11 @@ type AwsCredentials struct {
}
func backupDatabase() {
if config.BackupProvider == "none" || config.BackupProvider == "" {
log.Println("🚫 no backup provider set")
return
}
ticker := time.NewTicker(time.Duration(config.BackupIntervalHours) * time.Hour)
defer ticker.Stop()