Update db-log-addOn.js

This commit is contained in:
Skillet 2023-02-16 01:40:56 -05:00 committed by GitHub
parent 4a13a3f840
commit 57efa1dd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ export default class DBLogPlayerTime extends DBLog {
}
async onPlayerConnected(info) {
console.log(info);
if(info.player){
await this.models.SteamUser.upsert({
steamID: info.player.steamID,
@ -121,6 +122,7 @@ export default class DBLogPlayerTime extends DBLog {
}
async onPlayerDisconnected(info) {
console.log(info);
if(info.player){
await this.models.SteamUser.upsert({
steamID: info.player.steamID,