Skip to content

Commit 4540a38

Browse files
committed
fix: fix value not return bug
1 parent 99d8eb7 commit 4540a38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ function applyMiddlewares<FunctionType extends keyof FunctionsHandlers>(
117117
functionType,
118118
options,
119119
parameters,
120-
next: (...outputParameters: typeof parameters) =>
121-
(handler as any)(...outputParameters),
120+
next: async (...outputParameters: typeof parameters) => {
121+
result = await (handler as any)(...outputParameters);
122+
return result;
123+
},
122124
} as any);
123125
return result;
124126
}) as any;

0 commit comments

Comments
 (0)