im making an alexa skill using the alexa-sdk with dynasty to connnect to dynamodb. For some reason the data is not saved in the database yet I dont get any errors etc. Any help would be greatly appreciated. This is the method I used for it
Database.prototype.storeData = function(userId, data) {
console.log('Writing data for database for user '.concat(userId));
return table().insert({
userId: userId,
data: JSON.stringify(data)
}).catch(function(error) {
console.log('error: ' + error);
});
};
via user3408117
No comments:
Post a Comment