소스 검색

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

Jacky 2 달 전
부모
커밋
78444ea184
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 		}