Skip to content

Commit

Permalink
feat: change search for notifications to or (#396)
Browse files Browse the repository at this point in the history
Refs: CPLP-3045
Co-authored-by: Norbert Truchsess <[email protected]>
Reviewed-by: Norbert Truchsess <[email protected]>
  • Loading branch information
Phil91 and ntruchsess authored Jan 11, 2024
1 parent 2c61dc7 commit 499c186
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 499c186

Please sign in to comment.