Update db-log-addOn.js

This commit is contained in:
Skillet 2023-02-20 05:34:30 -05:00 committed by GitHub
parent 2ae23e2cfd
commit b1e3c57ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,13 +118,14 @@ 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.steamID,
joinTime: info.time,
joinedSeeding: this.seeding
});
});}
else console.log('player is null');
}
async onPlayerDisconnected(info) {