diff --git a/gaseous-server/Classes/Auth/Classes/UserTable.cs b/gaseous-server/Classes/Auth/Classes/UserTable.cs index b6f6890..d9ff46d 100644 --- a/gaseous-server/Classes/Auth/Classes/UserTable.cs +++ b/gaseous-server/Classes/Auth/Classes/UserTable.cs @@ -75,7 +75,7 @@ namespace Authentication public TUser GetUserById(string userId) { TUser user = null; - string commandText = "Select * from Users LEFT JOIN (SELECT UserId, Id AS AvatarId FROM UserAvatars) UserAvatars ON users.Id = UserAvatars.UserId where Id = @id"; + string commandText = "Select * from Users LEFT JOIN (SELECT UserId, Id AS AvatarId FROM UserAvatars) UserAvatars ON Users.Id = UserAvatars.UserId where Id = @id"; Dictionary parameters = new Dictionary() { { "@id", userId } }; var rows = _database.ExecuteCMDDict(commandText, parameters); @@ -114,7 +114,7 @@ namespace Authentication public List GetUserByName(string normalizedUserName) { List users = new List(); - string commandText = "Select * from Users LEFT JOIN (SELECT UserId, Id AS AvatarId FROM UserAvatars) UserAvatars ON users.Id = UserAvatars.UserId where NormalizedEmail = @name"; + string commandText = "Select * from Users LEFT JOIN (SELECT UserId, Id AS AvatarId FROM UserAvatars) UserAvatars ON Users.Id = UserAvatars.UserId where NormalizedEmail = @name"; Dictionary parameters = new Dictionary() { { "@name", normalizedUserName } }; var rows = _database.ExecuteCMDDict(commandText, parameters); @@ -148,7 +148,7 @@ namespace Authentication public List GetUsers() { List users = new List(); - string commandText = "Select * from Users LEFT JOIN (SELECT UserId, Id AS AvatarId FROM UserAvatars) UserAvatars ON users.Id = UserAvatars.UserId order by NormalizedUserName"; + string commandText = "Select * from Users LEFT JOIN (SELECT UserId, Id AS AvatarId FROM UserAvatars) UserAvatars ON Users.Id = UserAvatars.UserId order by NormalizedUserName"; var rows = _database.ExecuteCMDDict(commandText); foreach(Dictionary row in rows)