Skip to content

Commit

Permalink
fix(data-access): get all site candidates table name (#487)
Browse files Browse the repository at this point in the history
Please ensure your pull request adheres to the following guidelines:
- [ ] make sure to link the related issues in this description
- [ ] when merging / squashing, make sure the fixed issue references are
visible in the commits, for easy compilation of release notes

## Related Issues


Thanks for contributing!
  • Loading branch information
ekremney authored Dec 12, 2024
1 parent 6fd8c68 commit 5d62aee
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 5d62aee

Please sign in to comment.