Forráskód Böngészése

fix(auto-backup): refine storage path validation to check storage type

Jacky 2 hónapja
szülő
commit
78444ea184
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      internal/backup/auto_backup.go

+ 1 - 1
internal/backup/auto_backup.go

@@ -460,7 +460,7 @@ func ValidateAutoBackupConfig(config *model.AutoBackup) error {
 	}
 
 	// Validate storage path using centralized validation
-	if config.StoragePath != "" {
+	if config.StorageType == model.StorageTypeLocal && config.StoragePath != "" {
 		if err := ValidateStoragePath(config.StoragePath); err != nil {
 			return err
 		}