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 697feff commit bae1d48
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 @@ -295,6 +295,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 bae1d48

Please sign in to comment.