Skip to content

Syntax error when initializing Dynamo DB in server.js #34

Description

@johan-apo

constdb = new AWS.DynamoDB({});

As you can see there is a typo in the main branch, I also checked the server.js in the S3 bucket where the template is hosted and it is there as well (https://s3.amazonaws.com/awsinaction-code3/chapter16/server/server.js):

Image

I was wondering how the DB commands used by server.js are still working (I queried the table items and the updates are done, and the response of GET /image/:id does reply with correct data) let alone the application; I did a search through the ch16 files and could not find references to other images or repositories. I would appreciate some explanation. Good day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions