From 0d6766e804593b47c72741d14a40217257358cdd Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 6 Mar 2023 21:16:09 -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 e41dade..b90be0f 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -219,7 +219,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({