Skip to content

Commit

Permalink
fix ds issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro-KX committed Nov 30, 2023
1 parent 1219c84 commit 2d61da2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/commands/dataSourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
createKdbDataSourcesFolder,
getConnectedInsightsNode,
} from "../utils/dataSource";
import { handleWSResults } from "../utils/queryUtils";
import { handleScratchpadTableRes, handleWSResults } from "../utils/queryUtils";
import { validateScratchpadOutputVariableName } from "../validators/interfaceValidator";
import {
getDataInsights,
Expand Down Expand Up @@ -283,7 +283,8 @@ export async function runApiDataSource(
JSON.stringify(apiBody)
);
if (apiCall?.arrayBuffer) {
return handleWSResults(apiCall.arrayBuffer);
const results = handleWSResults(apiCall.arrayBuffer);
return handleScratchpadTableRes(results);
}
}

Expand Down Expand Up @@ -390,7 +391,8 @@ export async function runQsqlDataSource(
JSON.stringify(qsqlBody)
);
if (qsqlCall?.arrayBuffer) {
return handleWSResults(qsqlCall.arrayBuffer);
const results = handleWSResults(qsqlCall.arrayBuffer);
return handleScratchpadTableRes(results);
}
}

Expand All @@ -405,7 +407,8 @@ export async function runSqlDataSource(
JSON.stringify(sqlBody)
);
if (sqlCall?.arrayBuffer) {
return handleWSResults(sqlCall.arrayBuffer);
const results = handleWSResults(sqlCall.arrayBuffer);
return handleScratchpadTableRes(results);
}
}

Expand Down

0 comments on commit 2d61da2

Please sign in to comment.