Changes that should hopefully fix the last errors in staging!
Changes
Removed requireAuth
The method to get the token has changed, so the requireAuth isn't used.
The requireAuth gave error as it attempted to access the token the wrong way
Changed some of the get subscribers code, as it takes a second before it gets its data.
It gave an error when trying to load the subscribers, as it starts as undefined before it has all the data loaded. Now it is just set to zero and updated when the data comes through.
Just fixed some awaits and .then both being used the same place.
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.
[ ] 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.
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Branch: staging
Notes for Reviewers
Provide any additional information that could be useful for reviewers. This could include context about the problem being solved, implementation details, or anything else that might aid in the review process.
Description
Changes that should hopefully fix the last errors in staging!
Changes
Checklist
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Branch: staging
Notes for Reviewers
Provide any additional information that could be useful for reviewers. This could include context about the problem being solved, implementation details, or anything else that might aid in the review process.