diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 718561f..12b51ac 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -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 } );