Trying to get courses scan to work
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user