Skip to content

Commit

Permalink
fix: add destructuring to require() (#8544)
Browse files Browse the repository at this point in the history
This commit adds destructuring to the Lambda import to prevent
a crash.

Co-authored-by: Colin Ihrig <colihrig@amazon.com>
  • Loading branch information
cjihrig and cjihrig-aws committed Oct 26, 2021
1 parent aeaceab commit 1c00c9f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,5 +1,5 @@
const awsRegions = require('./aws-regions');
const Lambda = require('./aws-utils/aws-lambda');
const { Lambda } = require('./aws-utils/aws-lambda');
const DynamoDB = require('./aws-utils/aws-dynamodb');
const AppSync = require('./aws-utils/aws-appsync');
const { Lex } = require('./aws-utils/aws-lex');
Expand Down

0 comments on commit 1c00c9f

Please sign in to comment.