diff --git a/src/portalbackend/PortalBackend.DBAccess/Repositories/NotificationRepository.cs b/src/portalbackend/PortalBackend.DBAccess/Repositories/NotificationRepository.cs index ed41042bb5..8a71d781c5 100644 --- a/src/portalbackend/PortalBackend.DBAccess/Repositories/NotificationRepository.cs +++ b/src/portalbackend/PortalBackend.DBAccess/Repositories/NotificationRepository.cs @@ -84,8 +84,8 @@ public Notification DeleteNotification(Guid notificationId) => (!topicId.HasValue || notification.NotificationType!.NotificationTypeAssignedTopic!.NotificationTopicId == topicId.Value) && (!onlyDueDate || notification.DueDate.HasValue) && (!doneState.HasValue || notification.Done == doneState.Value) && - (!searchTypeIds.Any() || searchTypeIds.Contains(notification.NotificationTypeId) && - (searchQuery == null || notification.Content != null && EF.Functions.ILike(notification.Content, $"%{searchQuery.EscapeForILike()}%")))) + (!searchTypeIds.Any() || searchTypeIds.Contains(notification.NotificationTypeId)) && + (searchQuery == null || notification.Content != null && EF.Functions.ILike(notification.Content, $"%{searchQuery.EscapeForILike()}%"))) .GroupBy(notification => notification.ReceiverUserId), sorting switch {