Skip to content

Commit

Permalink
Fix koa validation (#42)
Browse files Browse the repository at this point in the history
* fix koa validation - add await on the next
  • Loading branch information
DinaYakovlev authored and idanto committed Jan 29, 2019
1 parent 366f10d commit 6407a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frameworks/koa.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function validate(validateRequest, ctx, next) {
if (errors) {
throw errors;
}
next();
await next();
}

module.exports = {
Expand Down

0 comments on commit 6407a73

Please sign in to comment.