From 07c973cd755ab793c7b6532969be6d2bceceefa7 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Thu, 8 Feb 2024 14:43:20 +1100 Subject: [PATCH] Fixed captialisation issue in sql query * Fixed captialisation issue in sql query --- gaseous-server/Classes/Auth/Classes/UserTable.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)