Skip to content

Commit

Permalink
BF: #1321
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmaster187 committed Jun 25, 2024
1 parent 3ae595c commit f9650a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TeslaLogger/DBHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ public static void AddMothershipDataToDB(string command, double duration, int ht
cmd.Parameters.AddWithValue("@commandid", mothershipCommands[command]);
cmd.Parameters.AddWithValue("@duration", duration);
cmd.Parameters.AddWithValue("@httpcode", httpcode);
if (carid == 0)
cmd.Parameters.AddWithValue("@carid", null);
if (carid == 0 || carid == -1)
cmd.Parameters.AddWithValue("@carid", DBNull.Value);
else
cmd.Parameters.AddWithValue("@carid", carid);
_ = SQLTracer.TraceNQ(cmd, out _);
Expand Down

0 comments on commit f9650a4

Please sign in to comment.