From b1f523c67c95ea200571d63f11058288dbeb9dcd Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 6 Mar 2023 21:30:12 -0500 Subject: [PATCH] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index a59804b..d5963c6 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -175,7 +175,7 @@ export default class DBLogPlayerTime extends DBLog { } async onPlayerDisconnected(info) { - await sleep (500); + await new Promise(r => setTimeout(r, 500)); console.log(info); if(info.player){ await this.models.SteamUser.upsert({