WIP on courses get function

This commit is contained in:
Ben Ramey
2018-09-18 07:14:04 -05:00
parent 435060a764
commit 071038b7f8
5 changed files with 42 additions and 43 deletions

View File

@@ -25,7 +25,7 @@ const queryByID = async (tableName, idKeyName, id) => {
// querying by id can be used when we are querying a table
// that has a sortKey, but we don't need to use the sortKey
const res = await dynamoClient.query({
TableName: "gt_answers",
TableName: tableName,
KeyConditionExpression: "#id = :idValue",
ExpressionAttributeNames: {
"#id": idKeyName,