Skip to content

Commit 68ad7ec

Browse files
author
Greg Bielleman
committed
Fixes #421
prior to adding the orderby the query would return 128 records, not necessarily the latest records. In conjunction with the SignalR push this meant results would flip to old records on page reload
1 parent 98ce06f commit 68ad7ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ServiceControl/EventLog/EventLogApiModule.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public EventLogApiModule()
1515
using (var session = Store.OpenSession())
1616
{
1717
RavenQueryStatistics stats;
18-
var results = session.Query<EventLogItem>()
19-
.Statistics(out stats)
18+
var results = session.Query<EventLogItem>().Statistics(out stats).OrderByDescending(p => p.RaisedAt)
2019
.ToArray();
2120

2221
return Negotiate.WithModel(results)

0 commit comments

Comments
 (0)