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
4a13a3f840
commit
57efa1dd75
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user