Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrispyPeaches authored May 3, 2024
1 parent 8822b89 commit 99f9b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FocusApp.Client/Methods/User/GetUserLogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public async Task<Result> Handle(
user = await GatherUserDataForCreatedUser(createUserResponse, auth0UserId, userEmail, userName, cancellationToken);

bool userExistsLocally = await _localContext.Users
.AnyAsync(u => u.Auth0Id == auth0UserId, cancellationToken);
.AnyAsync(u => u.Auth0Id == auth0UserId || u.Id == user.Id, cancellationToken);

// Add user to the local database if the user doesn't exist locally
if (!userExistsLocally)
Expand Down

0 comments on commit 99f9b53

Please sign in to comment.