order permission changed query helper properly
This commit is contained in:
parent
f50d067c73
commit
7c1c2e719b
@ -27,7 +27,8 @@ public class
|
|||||||
await using var context = _contextFactory.CreateContext();
|
await using var context = _contextFactory.CreateContext();
|
||||||
|
|
||||||
var auditEntries = context.EFChangeHistory.Where(change => change.TargetEntityId == query.ClientId)
|
var auditEntries = context.EFChangeHistory.Where(change => change.TargetEntityId == query.ClientId)
|
||||||
.Where(change => change.TypeOfChange == EFChangeHistory.ChangeType.Permission);
|
.Where(change => change.TypeOfChange == EFChangeHistory.ChangeType.Permission)
|
||||||
|
.OrderByDescending(change => change.TimeChanged);
|
||||||
|
|
||||||
var audits = from change in auditEntries
|
var audits = from change in auditEntries
|
||||||
join client in context.Clients
|
join client in context.Clients
|
||||||
|
Loading…
Reference in New Issue
Block a user