diff --git a/src/services/impl/notifications/send-notification.ts b/src/services/impl/notifications/send-notification.ts index a2ccbaffb1c223371ed8b42d702bc49233374b4c..993d73a881aa346f655bfd84de003409185d54be 100644 --- a/src/services/impl/notifications/send-notification.ts +++ b/src/services/impl/notifications/send-notification.ts @@ -278,13 +278,13 @@ export class SendNotification implements Command { targetGroups.push(group); if (intersection) return; - if (group && channel.groups.some(group => group.groupIdentifier === group.groupIdentifier)) return; + if (group && channel.groups.some(g => g.groupIdentifier === group.groupIdentifier)) return; groupsToSubscribe.push(group); }), ); - if (intersection) { + if (intersection || !groupsToSubscribe) { return targetGroups; }