mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
When users switched from Tencent COS to managed storage and saved, the UI would incorrectly show Tencent COS as the active provider on reload, and uploads would fail because the wrong storage backend was being used. Root cause: The `getActiveStorageProvider` method had a fallback behavior that automatically set and persisted the first provider as active when only one provider existed. This caused the managed storage selection to be overwritten. Changes: - Remove auto-persist fallback in getActiveStorageProvider (setting.service.ts) - Add proper validation for managed storage subscription (storage-setting.service.ts) - Reorder storage resolution to check managed storage first (photo-storage.service.ts) - Add getActivePlanSummaryForTenant with Creem subscription validation (storage-plan.service.ts) - Update dashboard UI to handle provider state correctly (StorageProvidersManager.tsx) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>