WIP on courses get function
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user