Update db-log-addOn.js

This commit is contained in:
Skillet 2023-02-15 02:38:32 -05:00 committed by GitHub
parent df4b74025d
commit 73e61b52da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,15 +112,10 @@ export default class DBLogPlayerTime extends DBLog {
async onPlayerConnected(info) {
if(info.player){
await this.models.SteamUser.upsert({
steamID: info.player.steamID,
lastName: info.player.name
});
await this.models.PlayerTime.create({
server: this.options.overrideServerID || this.server.id,
player: info.player ? info.player.steamID : null,
playerName: info.player ? info.player.name : null,
player: info.player.steamID,
playerName: info.player.name,
joinTime: info.time,
joinedSeeding: this.seeding
});