Skip to content

Commit

Permalink
fix: serverless app invoke args (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar authored Jul 2, 2021
1 parent d652016 commit 3467b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages-serverless/serverless-app/src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const start2 = async options => {
return analysisDecorator(appDir);
},
invoke: async (handlerName: string, trigger: any[]) => {
return runtime.asyncEvent(async ctx => {
return starterInstance.handleInvokeWrapper(handlerName)(ctx);
return runtime.asyncEvent(async (...args) => {
return starterInstance.handleInvokeWrapper(handlerName)(...args);
})(...trigger);
},
};
Expand Down

0 comments on commit 3467b73

Please sign in to comment.