Browse Source

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

Jacky 2 tháng trước cách đây
mục cha
commit
78444ea184
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 		}