Skip to content

Commit a724b12

Browse files
committed
feat(api-gateway): Drop cubeNameToDataSource from sqlGenerators response
1 parent 45cf55e commit a724b12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cubejs-api-gateway/src/gateway.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,15 +1486,14 @@ class ApiGateway {
14861486
const query = {
14871487
requestId: context.requestId,
14881488
};
1489-
const cubeNameToDataSource = await compilerApi.cubeNameToDataSource(query);
14901489
const memberToDataSource: Record<string, string> = await compilerApi.memberToDataSource(query);
14911490

14921491
const dataSources = new Set(Object.values(memberToDataSource));
14931492
const dataSourceToSqlGenerator = (await Promise.all(
14941493
[...dataSources].map(async dataSource => ({ [dataSource]: (await compilerApi.getSqlGenerator(query, dataSource)).sqlGenerator }))
14951494
)).reduce((a, b) => ({ ...a, ...b }), {});
14961495

1497-
res({ cubeNameToDataSource, memberToDataSource, dataSourceToSqlGenerator });
1496+
res({ memberToDataSource, dataSourceToSqlGenerator });
14981497
} catch (e: any) {
14991498
this.handleError({
15001499
e, context, res, requestStarted

0 commit comments

Comments
 (0)