mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2024-12-30 15:19:18 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
75ed52848a
commit
38abd3ba97
@ -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 }
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user