瀏覽代碼

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
 		}