From bb9c7af9d4cac4cdc99294340b1d2c1831315e4f Mon Sep 17 00:00:00 2001 From: Histmy Date: Thu, 4 Jan 2024 19:47:18 +0100 Subject: [PATCH] =?UTF-8?q?kvalitn=C3=AD=20hork=C3=A1=20z=C3=A1plata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index fc10603..af771dc 100644 --- a/src/app.ts +++ b/src/app.ts @@ -40,7 +40,7 @@ const runEvent = async (name: string, args: unknown[]) => { for (const listener of superEventy[name] || []) { if (!listener) continue; // [after] pozice v superEventy arrayi se dají nastavovat a teoreticky může nastat mezera try { - if (listener(...args)) return true; // if listener returns true, it means, we shouldn't continue with execustion + if (await listener(...args)) return true; // if listener returns true, it means, we shouldn't continue with execustion } catch (e) { if (process.env.dieOnError) throw e; log("error pri spusteni super listeneru", e as Error);