Description
The user’s storage limit is now updated whenever an event is received from the backend.
When a user purchases a plan, the backend sends a socket event called PLAN_UPDATED containing the new storage (in bytes). This value is now used to update the user’s storage limit directly, without requiring an additional fetch to retrieve the updated limit.
Related Issues
Related Pull Requests
Checklist
- Changes have been tested locally.
- Unit tests have been written or updated as necessary.
- The code adheres to the repository's coding standards.
- Relevant documentation has been added or updated.
- No new warnings or errors have been introduced.
- SonarCloud issues have been reviewed and addressed.
- QA Passed