ca98am79 / connect-dynamodb

DynamoDB session store for Connect
http://ca98am79.github.com/connect-dynamodb/
MIT License
144 stars 66 forks source link

hashKey is only used for table creation, fails for reads/writes #35

Closed lemieuxster closed 5 years ago

lemieuxster commented 7 years ago
            Key: {
                id: {
                    'S': sid
                }
            }

Uses id as a hard-coded value. Should use value of hashKey option.

var KeyValue = {}
KeyValue[this.hashKey] = { 'S' : sid };

...

Key : KeyValue

Results in ValidationException

ollyfg commented 5 years ago

A bit old now, but I just came across this exact problem, and have written up a quick PR: #53.