Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improve handling of status page resources in subscriber report
This commit refactors the code related to the status page subscriber report. The changes include updating the email template and resource handling in the `StatusPageSubscriberReport.hbs` file. The resource table is now rendered based on whether there are any resources to display. If there are no resources, a message indicating the absence of resources is shown. Additionally, the `SendReportsToSubscribers.ts` file in the `Workers/Jobs/StatusPage` directory has been modified to handle the case where there are no status page resources. If there are no resources, the email report is not sent, and an error is logged. These changes improve the handling of resources in the status page subscriber report and ensure that the email report is only sent when there are resources to include.
- Loading branch information