Update db-log-addOn.js

This commit is contained in:
Skillet 2023-02-15 08:27:19 -05:00 committed by GitHub
parent 23ebb60035
commit c34c0014af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ export default class DBLogPlayerTime extends DBLog {
}
async onPlayerConnected(info) {
this.console.log(info);
console.log(info);
if(info.player){
await this.models.PlayerTime.create({
server: this.options.overrideServerID || this.server.id,
@ -124,7 +124,7 @@ export default class DBLogPlayerTime extends DBLog {
}
async onPlayerDisconnected(info) {
this.console.log(info);
console.log(info);
if(info.player){
await this.models.PlayerTime.update(
{ leaveTime: info.time },