mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 13:19:20 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
8c68eba943
commit
fcc86e95f6
@ -107,15 +107,15 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
}
|
}
|
||||||
console.log('players online:', playerOnlineID);
|
console.log('players online:', playerOnlineID);
|
||||||
const {ne} = Sequelize.Op;
|
const {ne} = 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,
|
||||||
player: { [ne]: playerOnlineID }
|
// player: { [ne]: playerOnlineID }
|
||||||
} },
|
// } },
|
||||||
{ logging: console.log }
|
// { logging: console.log }
|
||||||
);
|
// );
|
||||||
console.log('updated playerTimes row count: %i', rowUpdate[0]);
|
console.log('updated playerTimes row count: %i', rowUpdate[0]);
|
||||||
console.log('finish DB repair');
|
console.log('finish DB repair');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user