From e61407c67e272346022dda0e36f7f9ec277f22a1 Mon Sep 17 00:00:00 2001 From: Ezequiel Ramos Date: Wed, 12 Jun 2024 11:10:07 -0300 Subject: [PATCH] fix --- src/controllers/events.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/controllers/events.ts b/src/controllers/events.ts index 534b156..5ebfe28 100644 --- a/src/controllers/events.ts +++ b/src/controllers/events.ts @@ -175,11 +175,15 @@ function resetEvents() { } function getEvents() { - return Object.values(events).forEach(event => { + + const eventList = Object.values(events); + for (const event of eventList) { if (event) { event.looks_like_confidence = event.confidence; } - }); + } + + return eventList; } export { createEvent, getEvent, resetEvents, getEvents };