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);