Skip to content

Commit

Permalink
Fixed GetByEmailAsync method to actually search by email :D
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonsLover committed Feb 17, 2024
1 parent 46366ec commit 1db22ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Geesemon.DataAccess.Dapper/Providers/UserProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ OFFSET @skip ROWS
using var connection = dapperConnection.Open();

var tableName = GetTableName();
var query = $"SELECT * FROM {tableName} WHERE Identifier = @email";
var query = $"SELECT * FROM {tableName} WHERE Email = @email";

return await connection.QuerySingleOrDefaultAsync<User?>(query, new { email });
}
Expand Down

0 comments on commit 1db22ea

Please sign in to comment.