Skip to content

Commit

Permalink
NTBS-2074: Add orderby to inactive notification query
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoCie committed Mar 16, 2021
1 parent 6981763 commit 6d18c9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ntbs-service/DataAccess/NotificationRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ public async Task<IEnumerable<Notification>> GetInactiveNotificationsToCloseAsyn
.ThenInclude(t => t.TreatmentOutcome)
.Where(n => n.NotificationStatus == NotificationStatus.Notified)
.Where(n => n.TreatmentEvents.Any(t => t.TreatmentOutcome != null))
.OrderBy(n => n.NotificationId)
.AsSplitQuery()
.ToListAsync())
.Where(n =>
Expand Down

0 comments on commit 6d18c9a

Please sign in to comment.