mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 12:09:20 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
df4b74025d
commit
73e61b52da
@ -112,15 +112,10 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
|
|
||||||
async onPlayerConnected(info) {
|
async onPlayerConnected(info) {
|
||||||
if(info.player){
|
if(info.player){
|
||||||
await this.models.SteamUser.upsert({
|
|
||||||
steamID: info.player.steamID,
|
|
||||||
lastName: info.player.name
|
|
||||||
});
|
|
||||||
|
|
||||||
await this.models.PlayerTime.create({
|
await this.models.PlayerTime.create({
|
||||||
server: this.options.overrideServerID || this.server.id,
|
server: this.options.overrideServerID || this.server.id,
|
||||||
player: info.player ? info.player.steamID : null,
|
player: info.player.steamID,
|
||||||
playerName: info.player ? info.player.name : null,
|
playerName: info.player.name,
|
||||||
joinTime: info.time,
|
joinTime: info.time,
|
||||||
joinedSeeding: this.seeding
|
joinedSeeding: this.seeding
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user