mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2024-12-30 16:29:18 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
ef3d4095f8
commit
fe5a9c0670
@ -98,7 +98,7 @@ export default class DBLogPlayerTime extends DBLog {
|
||||
order: [['id', 'DESC']]}
|
||||
);
|
||||
console.log('last tick found:', lastTickTime);
|
||||
let lastServerTime = lastTickTime.time;
|
||||
let lastServerTime = String(lastTickTime.time);
|
||||
console.log('last time found:', lastServerTime);
|
||||
let playerOnlineID = [];
|
||||
playerOnlineID.push(0);
|
||||
@ -108,10 +108,10 @@ export default class DBLogPlayerTime extends DBLog {
|
||||
console.log('players online:', playerOnlineID);
|
||||
const {ne, not, notIn, is} = Sequelize.Op;
|
||||
let rowUpdate = await this.models.PlayerTime.update(
|
||||
{ leaveTime: lastServerTime },
|
||||
{ leaveTime: (lastServerTime) },
|
||||
{ where: {
|
||||
leaveTime: {[is]: null},
|
||||
server: this.options.overrideServerID || this.server.id,
|
||||
server: (this.options.overrideServerID || this.server.id),
|
||||
player: {[notIn]: playerOnlineID}
|
||||
},
|
||||
logging: console.log
|
||||
|
Loading…
Reference in New Issue
Block a user