From 5d62aee7e29a1f78f692ea6802ac1334e884b9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ekrem=20Do=C4=9Fan?= Date: Thu, 12 Dec 2024 14:23:23 +0100 Subject: [PATCH] fix(data-access): get all site candidates table name (#487) 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! --- .../src/service/site-candidates/accessPatterns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/spacecat-shared-data-access/src/service/site-candidates/accessPatterns.js b/packages/spacecat-shared-data-access/src/service/site-candidates/accessPatterns.js index 65d4cc44..0cc0c37e 100644 --- a/packages/spacecat-shared-data-access/src/service/site-candidates/accessPatterns.js +++ b/packages/spacecat-shared-data-access/src/service/site-candidates/accessPatterns.js @@ -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));