Skip to content

Commit

Permalink
distinct by value
Browse files Browse the repository at this point in the history
  • Loading branch information
vbelinschi committed Dec 19, 2024
1 parent fc6c563 commit 1fc13b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public async Task<IEnumerable<AuditLog<ActorAuditedChange>>> GetAsync(ActorId ac
.ActorConsolidationAuditLogEntries
.Where(log => log.NewValue == actorId.Value.ToString() || log.OldValue == actorId.Value.ToString())
.OrderBy(log => log.Id)
.DistinctBy(log => new { log.OldValue, log.NewValue })
.ToListAsync()
.ConfigureAwait(false);

Expand Down

0 comments on commit 1fc13b9

Please sign in to comment.