Fix existingNotificationTypes for Edge

This commit is contained in:
Andrii Landiak 2024-03-18 12:47:32 +02:00
parent f4c2791eb0
commit f4733a44b4

View File

@ -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)