Skip to content

Commit f8e1c96

Browse files
author
Liam
authored
Merge pull request #5 from tslashd/column-names
[WIP] Adjust column names
2 parents 404361a + 985c168 commit f8e1c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ST-Events/Players.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public HookResult OnPlayerDisconnect(EventPlayerDisconnect @event, GameEventInfo
123123
else
124124
{
125125
// Update data in Player DB table
126-
Task<int> updatePlayerTask = DB.Write($"UPDATE `Player` SET country = '{playerList[player.UserId ?? 0].Profile.Country}', `lastseen` = {(int)DateTimeOffset.UtcNow.ToUnixTimeSeconds()}, `connections` = `connections` + 1 WHERE `id` = {playerList[player.UserId ?? 0].Profile.ID} LIMIT 1;");
126+
Task<int> updatePlayerTask = DB.Write($"UPDATE `Player` SET country = '{playerList[player.UserId ?? 0].Profile.Country}', `last_seen` = {(int)DateTimeOffset.UtcNow.ToUnixTimeSeconds()}, `connections` = `connections` + 1 WHERE `id` = {playerList[player.UserId ?? 0].Profile.ID} LIMIT 1;");
127127
if (updatePlayerTask.Result != 1)
128128
throw new Exception($"CS2 Surf ERROR >> OnPlayerDisconnect -> Failed to update player data in database. Player: {player.PlayerName} ({player.SteamID})");
129129

0 commit comments

Comments
 (0)