Skip to content

Commit 6407a73

Browse files
DinaYakovlevidanto
authored andcommitted
Fix koa validation (#42)
* fix koa validation - add await on the next
1 parent 366f10d commit 6407a73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frameworks/koa.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function validate(validateRequest, ctx, next) {
1919
if (errors) {
2020
throw errors;
2121
}
22-
next();
22+
await next();
2323
}
2424

2525
module.exports = {

0 commit comments

Comments
 (0)