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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|
|