Skip to content

Commit

Permalink
fix(@whook/aws-lambda): fix default parameters value
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Jun 8, 2021
1 parent 97bf0ce commit 44d527a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/whook-aws-lambda/src/wrappers/awsCronLambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function handleForAWSCronLambda<T extends JsonObject = JsonObject>(
const startTime = time();
const parameters: LambdaCronInput<T> = {
date: event.time,
parameters: event.parameters,
parameters: event.parameters || ({} as T),
};
try {
log('debug', 'EVENT', JSON.stringify(event));
Expand Down

0 comments on commit 44d527a

Please sign in to comment.