diff --git a/Common/Server/Services/StatusPageSubscriberService.ts b/Common/Server/Services/StatusPageSubscriberService.ts index d5824b4520..46514184ee 100644 --- a/Common/Server/Services/StatusPageSubscriberService.ts +++ b/Common/Server/Services/StatusPageSubscriberService.ts @@ -319,6 +319,7 @@ export class Service extends DatabaseService { statusPage: StatusPage; eventType: StatusPageEventType; }): boolean { + let shouldSendNotification: boolean = true; // default to true. if (data.subscriber.isUnsubscribed) { @@ -341,7 +342,7 @@ export class Service extends DatabaseService { let shouldSendNotificationForResource: boolean = false; if (subscriberResourceIds.length === 0) { - shouldSendNotificationForResource = true; + shouldSendNotificationForResource = false; } else { for (const resource of data.statusPageResources) { if (