From e1c187732290584f3dec16a5c5e29e80bc96fada Mon Sep 17 00:00:00 2001 From: IrPgFKS0 <2511445@gmail.com> Date: Tue, 5 Sep 2023 15:47:17 -0700 Subject: [PATCH] fixed lastConnectionDate await issue --- package.json | 2 +- structures/DayzRBot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 421f6b1..3c2bfe6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "9.8.1", + "version": "9.8.2", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": { diff --git a/structures/DayzRBot.js b/structures/DayzRBot.js index ecd1a4d..a19b82e 100644 --- a/structures/DayzRBot.js +++ b/structures/DayzRBot.js @@ -185,7 +185,7 @@ class DayzRBot extends Client { // This player was not connected before, i.e missing connection log? playerStat.connected = true; - playerStat.lastConnectionDate = this.getDateEST(info.time); // Assume connected now + playerStat.lastConnectionDate = await this.getDateEST(info.time); // Assume connected now detectedAsConnected.push() }