Update db-log-addOn.js

This commit is contained in:
Skillet 2023-03-04 11:01:07 -05:00 committed by GitHub
parent 75ed52848a
commit 38abd3ba97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,12 +106,13 @@ export default class DBLogPlayerTime extends DBLog {
playerOnlineID.push(player.steamID);
}
console.log('players online:', playerOnlineID);
const {ne} = Sequalize.Op;
let rowUpdate = await this.models.PlayerTime.update(
{ leaveTime: lastServerTime },
{ where: {
leaveTime: null,
server: this.options.overrideServerID || this.server.id,
$not: { player: playerOnlineID }
player: { [ne]: playerOnlineID }
} },
{ logging: console.log }
);