mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 10:59: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) {
|
async onPlayerConnected(info) {
|
||||||
|
console.log(info);
|
||||||
if(info.player){
|
if(info.player){
|
||||||
await this.models.SteamUser.upsert({
|
await this.models.SteamUser.upsert({
|
||||||
steamID: info.player.steamID,
|
steamID: info.player.steamID,
|
||||||
@ -121,6 +122,7 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async onPlayerDisconnected(info) {
|
async onPlayerDisconnected(info) {
|
||||||
|
console.log(info);
|
||||||
if(info.player){
|
if(info.player){
|
||||||
await this.models.SteamUser.upsert({
|
await this.models.SteamUser.upsert({
|
||||||
steamID: info.player.steamID,
|
steamID: info.player.steamID,
|
||||||
|
Loading…
Reference in New Issue
Block a user