all events are now synchronous

This commit is contained in:
azivner
2018-08-12 20:07:02 +02:00
parent 9fb0599c45
commit c78ddb70cb
3 changed files with 3 additions and 15 deletions

View File

@@ -65,7 +65,7 @@ async function loginToProtectedSession(req) {
// this is set here so that event handlers have access to the protected session
cls.namespace.set('protectedSessionId', protectedSessionId);
eventService.emit(eventService.ENTER_PROTECTED_SESSION);
await eventService.emit(eventService.ENTER_PROTECTED_SESSION);
return {
success: true,