Core/DB: Fixes sometimes wrong values added to DB, also fixes errors when trying to convert updatefield to object.

This commit is contained in:
hondacrx
2021-04-21 18:06:46 -04:00
parent 897ca11273
commit ba064327b0
30 changed files with 149 additions and 89 deletions
@@ -98,7 +98,7 @@ namespace BNetServer.Networking
PreparedStatement stmt = DB.Login.GetPreparedStatement(LoginStatements.UpdBnetLastLoginInfo);
stmt.AddValue(0, GetRemoteIpEndPoint().ToString());
stmt.AddValue(1, Enum.Parse(typeof(Locale), locale));
stmt.AddValue(1, (byte)Enum.Parse(typeof(Locale), locale));
stmt.AddValue(2, os);
stmt.AddValue(3, accountInfo.Id);