Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logger events return Loaded 0 events #418

Merged
merged 1 commit into from
Feb 26, 2023
Merged

Conversation

WolverStones
Copy link
Contributor

This code seems to be correct, but the issue is that the readdirSync and import functions are asynchronous while the forEach method is synchronous. This means that the code tries to register events before the event files are loaded.

This code seems to be correct, but the issue is that the readdirSync and import functions are asynchronous while the forEach method is synchronous. This means that the code tries to register events before the event files are loaded.

Signed-off-by: WolverStone <topcz@post.cz>
@LucasB25 LucasB25 merged commit a12dd79 into appujet:main Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants