Trying to get courses scan to work

This commit is contained in:
Ben Ramey
2018-09-18 07:38:12 -05:00
parent 7710a4ef14
commit 136a6f4df0
2 changed files with 4 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ const scan = async (tableName) => {
const res = await dynamoClient.scan({
TableName: tableName
}).promise();
return res && res.Item;
};
const queryByID = async (tableName, idKeyName, id) => {
@@ -62,6 +64,7 @@ module.exports = {
client: dynamoClient,
create,
get,
scan,
queryByID,
update
};