Improved how the Explore page check is you are subscribed to a course.
Now it don't call the DB twice per card per render, and the banner seems instant instead of being a moment delayed.
Accidently linted some other files as well
Changes
Made a simple function in Explore to check if you are subscribed
Removed old functions calling StorageService and api (and in turn the DB) to check if subscribed.
Check if subscribed function removed from api and StorageService
Removed test for the removed functions
Linted everything (including some other non-linted files on dev)
Related Issues
No issues, the functions was not used anywhere else
Checklist
[x] Code has been tested locally and passes all relevant tests.
[x] Documentation has been updated to reflect the changes, if applicable.
[x] Code follows the established coding style and guidelines of the project.
[x] All new and existing tests related to the changes have passed.
[x] Any necessary dependencies or new packages have been properly documented.
[x] Pull request title and description are clear and descriptive.
[x] Reviewers have been assigned to the pull request.
[x] Any potential security implications have been considered and addressed.
[x] Performance impact of the changes has been evaluated, if relevant.
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Description
Improved how the Explore page check is you are subscribed to a course. Now it don't call the DB twice per card per render, and the banner seems instant instead of being a moment delayed.
Accidently linted some other files as well
Changes
Related Issues
No issues, the functions was not used anywhere else
Checklist
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Branch: dev
Commit id:
Notes for Reviewers