Skip to content

Commit

Permalink
fix: fc-starter layer contextExtensions failed (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lellansin committed Aug 19, 2020
1 parent c572b04 commit f69f434
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/serverless-fc-starter/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export class FCRuntime extends ServerlessLightRuntime {
app;
respond;

init() {
init(contextExtensions) {
super.init(contextExtensions);
this.app = new Application();
}

Expand Down Expand Up @@ -237,6 +238,7 @@ export class FCRuntime extends ServerlessLightRuntime {
};
// 其他事件场景
return this.invokeHandlerWrapper(newCtx, async () => {
args[0] = newCtx;
return handler.apply(handler, args);
});
}
Expand Down

0 comments on commit f69f434

Please sign in to comment.