Skip to content

Commit

Permalink
Revert "Remove for update from state lookup (#768)"
Browse files Browse the repository at this point in the history
This reverts commit dff900d.
  • Loading branch information
gunndabad authored Dec 1, 2023
1 parent dff900d commit 0c46b95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public DbAuthenticationStateProvider(
using var suppressScope = SentryErrors.Suppress(IsPostgresSerializationError);

var dbAuthState = await _dbContext.AuthenticationStates.FromSqlInterpolated(
$"select * from authentication_states where journey_id = {journeyId}")
$"select * from authentication_states where journey_id = {journeyId} for update")
.SingleOrDefaultAsync();

if (dbAuthState is not null)
Expand Down

0 comments on commit 0c46b95

Please sign in to comment.