Browse Source

Merge pull request #10387 from AndriiLandiak/fix/log-upgrade-error

Fix page size existingNotificationTypes for Edge
pull/10390/head
Viacheslav Klimov 2 years ago
committed by GitHub
parent
commit
3a7635dd81
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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