From 7def712f2ff3c25e0d5b4d18e6b92d6b96e2fc0c Mon Sep 17 00:00:00 2001 From: Skillet Date: Thu, 2 Mar 2023 05:01:52 -0500 Subject: [PATCH] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 4af78d5..d09138a 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -92,8 +92,8 @@ export default class DBLogPlayerTime extends DBLog { ); let lastServerTime = lastTickTime.time; let playerOnlineID = []; - console.log(this.players); - for (player of this.players){ + let players = await this.rcon.getListPlayers(); + for (player of players){ playerOnlineID.push(player.steamID); } const {not} = Sequelize.Op;