Skip to content

Commit

Permalink
fix incorrect ordering of the events (#3937)
Browse files Browse the repository at this point in the history
  • Loading branch information
soujay authored Jan 22, 2024
1 parent 08badb3 commit 89c444b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ServiceControl.Persistence.RavenDB/EventLogDataStore.cs
Original file line number Diff line number Diff line change
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 Add(EventLogItem logItem)
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 89c444b

Please sign in to comment.