Skip to content

Commit

Permalink
fixes the issue on incorrect ordering of events
Browse files Browse the repository at this point in the history
  • Loading branch information
soujay authored and ramonsmits committed Jan 22, 2024
1 parent 640b798 commit ee83790
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ServiceControl.Persistence.RavenDB/EventLogDataStore.cs
Expand Up @@ -5,7 +5,6 @@
using EventLog;
using Persistence.Infrastructure;
using Raven.Client.Documents;
using Raven.Client.Documents.Session;

class EventLogDataStore : IEventLogDataStore
{
Expand All @@ -32,7 +31,7 @@ public async Task<(IList<EventLogItem>, int, string)> GetEventLogItems(PagingInf
var results = await session
.Query<EventLogItem>()
.Statistics(out var stats)
.OrderByDescending(p => p.RaisedAt, OrderingType.Double)
.OrderByDescending(p => p.RaisedAt)
.Paging(pagingInfo)
.ToListAsync();

Expand Down

0 comments on commit ee83790

Please sign in to comment.