Skip to content

Commit

Permalink
fix: fc runtime default ctx (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar authored Jan 21, 2021
1 parent da6e762 commit 23ad9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages-serverless/serverless-fc-starter/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class FCRuntime extends ServerlessLightRuntime {
]);
}

async wrapperEventInvoker(handler, event, context) {
async wrapperEventInvoker(handler, event, context: any = {}) {
const args = [context];
if (event && event[FAAS_ARGS_KEY]) {
args.push(event[FAAS_ARGS_KEY]);
Expand Down

0 comments on commit 23ad9a2

Please sign in to comment.