code3 icon indicating copy to clipboard operation
code3 copied to clipboard

Syntax error when initializing Dynamo DB in `server.js`

Open johan-apo opened this issue 6 months ago • 0 comments

https://github.com/AWSinAction/code3/blob/4ac62628783a7ab0d5ef9d60944551e448a0952b/chapter16/server/server.js#L8

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.

johan-apo avatar Aug 04 '25 22:08 johan-apo