mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 14:29:26 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
a86eb830e5
commit
628c10c5db
@ -106,13 +106,13 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
playerOnlineID.push(player.steamID);
|
playerOnlineID.push(player.steamID);
|
||||||
}
|
}
|
||||||
console.log('players online:', playerOnlineID);
|
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(
|
let rowUpdate = await this.models.PlayerTime.update(
|
||||||
{ leaveTime: lastServerTime },
|
{ leaveTime: lastServerTime },
|
||||||
{ where: {
|
{ where: {
|
||||||
leaveTime: {[is]: null},
|
leaveTime: {[is]: null},
|
||||||
server: this.options.overrideServerID || this.server.id,
|
server: this.options.overrideServerID || this.server.id,
|
||||||
player: { [not]: {[opIn]: playerOnlineID} }
|
player: {[notIn]: playerOnlineID}
|
||||||
} },
|
} },
|
||||||
{ logging: console.log }
|
{ logging: console.log }
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user