Skip to content

Commit 5b21c9c

Browse files
authored
Merge pull request #4 from AntonBazhal/next-return
Make next return result
2 parents 2814b67 + f755e9e commit 5b21c9c

4 files changed

Lines changed: 345 additions & 447 deletions

File tree

lib/handler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ async function dispatch(middleware, state, i = 0) {
1616
}
1717

1818
await dispatch(middleware, state, i + 1);
19+
20+
return state.result;
1921
};
2022

2123
const result = await fn(state.event, state.context, next);

0 commit comments

Comments
 (0)