From 38abd3ba97a3edcb22a883cd503ddf8cfdf8e525 Mon Sep 17 00:00:00 2001 From: Skillet Date: Sat, 4 Mar 2023 11:01:07 -0500 Subject: [PATCH] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } );