mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2024-12-30 15:19:18 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
a29b3199f6
commit
2ae23e2cfd
@ -118,14 +118,13 @@ export default class DBLogPlayerTime extends DBLog {
|
||||
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.steamID,
|
||||
player: info.steamID,
|
||||
joinTime: info.time,
|
||||
joinedSeeding: this.seeding
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async onPlayerDisconnected(info) {
|
||||
@ -134,11 +133,10 @@ export default class DBLogPlayerTime extends DBLog {
|
||||
await this.models.SteamUser.upsert({
|
||||
steamID: info.player.steamID,
|
||||
lastName: info.player.name
|
||||
});
|
||||
});}
|
||||
await this.models.PlayerTime.update(
|
||||
{ leaveTime: info.time },
|
||||
{ where: { player: info.player.steamID, leaveTime: null, server: this.options.overrideServerID || this.server.id } }
|
||||
{ where: { player: info.steamID, leaveTime: null, server: this.options.overrideServerID || this.server.id } }
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user