Update db-log-addOn.js

This commit is contained in:
Skillet 2023-03-06 10:41:57 -05:00 committed by GitHub
parent a86eb830e5
commit 628c10c5db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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