Browse Source

Fix existingNotificationTypes for Edge

pull/10387/head
Andrii Landiak 2 years ago
parent
commit
f4733a44b4
  1. 2
      dao/src/main/java/org/thingsboard/server/dao/notification/DefaultNotificationSettingsService.java

2
dao/src/main/java/org/thingsboard/server/dao/notification/DefaultNotificationSettingsService.java

@ -222,7 +222,7 @@ public class DefaultNotificationSettingsService implements NotificationSettingsS
} else {
var requiredNotificationTypes = List.of(NotificationType.EDGE_CONNECTION, NotificationType.EDGE_COMMUNICATION_FAILURE);
var existingNotificationTypes = notificationTemplateService.findNotificationTemplatesByTenantIdAndNotificationTypes(
tenantId, requiredNotificationTypes, new PageLink(1))
tenantId, requiredNotificationTypes, new PageLink(2))
.getData()
.stream()
.map(NotificationTemplate::getNotificationType)

Loading…
Cancel
Save