Skip to content

Commit

Permalink
fix(data-access): get all site candidates table name
Browse files Browse the repository at this point in the history
  • Loading branch information
ekremney committed Dec 12, 2024
1 parent 6fd8c68 commit 60ec21a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { SiteCandidateDto } from '../../dto/site-candidate.js';
*/
export const getSiteCandidates = async (dynamoClient, config) => {
const dynamoItems = await dynamoClient.scan({
TableName: config.tableNameSites,
TableName: config.tableNameSiteCandidates,
});

return dynamoItems.map((dynamoItem) => SiteCandidateDto.fromDynamoItem(dynamoItem));
Expand Down

0 comments on commit 60ec21a

Please sign in to comment.