Skip to content

Commit

Permalink
Make create flow actually use new field
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
  • Loading branch information
Swiddis committed Oct 26, 2023
1 parent 08867b5 commit c337aee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,10 @@ export function SetupBottomBar({
for (const query of assets.data.queries!) {
let queryStr = (query.query as string).replaceAll(
'{table_name}',
`${config.connectionDataSource}.default.${integration.name}`
`${config.connectionDataSource}.default.${config.connectionTableName}`
);
queryStr = queryStr.replaceAll('{s3_bucket_location}', config.connectionLocation);
queryStr = queryStr.replaceAll('{object_name}', integration.name);
queryStr = queryStr.replaceAll('{object_name}', config.connectionTableName);
queryStr = queryStr.replaceAll(/\s+/g, ' ');
const result = await runQuery(queryStr, config.connectionDataSource, sessionId);
if (!result.ok) {
Expand All @@ -417,7 +417,7 @@ export function SetupBottomBar({
integration,
setCalloutLikeToast,
config.displayName,
`flint_${config.connectionDataSource}_default_${integration.name}_mview`
`flint_${config.connectionDataSource}_default_${config.connectionTableName}_mview`
);
if (!res) {
setLoading(false);
Expand Down

0 comments on commit c337aee

Please sign in to comment.