mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 12:09:20 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
1afde41836
commit
06672d1edf
@ -105,13 +105,12 @@ 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 Op = require('sequelize').Op;
|
|
||||||
let rowUpdate = await this.models.PlayerTime.update(
|
let rowUpdate = await this.models.PlayerTime.update(
|
||||||
{ leaveTime: lastServerTime },
|
{ leaveTime: lastServerTime },
|
||||||
{ where: {
|
{ where: {
|
||||||
leaveTime: null,
|
leaveTime: null,
|
||||||
server: this.options.overrideServerID || this.server.id,
|
server: this.options.overrideServerID || this.server.id,
|
||||||
[Op.ne]: { player: playerOnlineID }
|
$not: { player: playerOnlineID }
|
||||||
} },
|
} },
|
||||||
{ logging: console.log }
|
{ logging: console.log }
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user