Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Converted ES6 import to require (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravanapel committed Feb 19, 2020
1 parent 2285a3a commit 6c3fa70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Okay, now let's write the Lambda handler code for our hit counter.
Create the file `lambda/hitcounter.js`:

```js
import { DynamoDB, Lambda } from 'aws-sdk';
const { DynamoDB, Lambda } = require('aws-sdk');

exports.handler = async function(event) {
console.log("request:", JSON.stringify(event, undefined, 2));
Expand Down

0 comments on commit 6c3fa70

Please sign in to comment.