bugfix: await event handlers

This commit is contained in:
Michael Shanks 2020-02-24 16:04:13 +00:00
parent e9ccf25eb8
commit 829eea4189
1 changed files with 2 additions and 2 deletions

View File

@ -251,11 +251,11 @@ const _setup = (
const makeHandler = (handlerTypes, handlerInfo) => {
const handlerType = handlerTypes[handlerInfo.handlerType]
return context => {
return async context => {
const parameters = {}
for (let paramName in handlerInfo.parameters) {
parameters[paramName] = handlerInfo.parameters[paramName](context)
}
handlerType.execute(parameters)
await handlerType.execute(parameters)
}
}