Skip to content

Commit

Permalink
Merge pull request #1043 from DuendeSoftware/brock/6.1.x-ef-session-s…
Browse files Browse the repository at this point in the history
…tore-tracking-bug

remove unnecessary call to AsNoTracking
  • Loading branch information
leastprivilege authored Oct 12, 2022
2 parents 3b7c05d + 7a3e7ed commit 96a6d0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public virtual async Task DeleteSessionAsync(string key, CancellationToken cance

cancellationToken = cancellationToken == CancellationToken.None ? CancellationTokenProvider.CancellationToken : cancellationToken;

var entity = (await Context.ServerSideSessions.AsNoTracking().Where(x => x.Key == key)
var entity = (await Context.ServerSideSessions.Where(x => x.Key == key)
.ToArrayAsync(cancellationToken))
.SingleOrDefault(x => x.Key == key);

Expand Down

0 comments on commit 96a6d0b

Please sign in to comment.