From 319a9e47c824e851ea4cf9c0aeee814f8976a28f Mon Sep 17 00:00:00 2001 From: Skillet Date: Wed, 15 Feb 2023 11:25:24 -0500 Subject: [PATCH] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 01ccc5c..aca799b 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -110,8 +110,8 @@ export default class DBLogPlayerTime extends DBLog { async onPlayerConnected(info) { if(info.player){ await this.models.SteamUser.upsert({ - steamID: info.attacker.steamID, - lastName: info.attacker.name + steamID: info.player.steamID, + lastName: info.player.name }); await this.models.PlayerTime.create({ server: this.options.overrideServerID || this.server.id, @@ -125,8 +125,8 @@ export default class DBLogPlayerTime extends DBLog { async onPlayerDisconnected(info) { if(info.player){ await this.models.SteamUser.upsert({ - steamID: info.attacker.steamID, - lastName: info.attacker.name + steamID: info.player.steamID, + lastName: info.player.name }); await this.models.PlayerTime.update( { leaveTime: info.time },