Skip to content

Commit 9f18a89

Browse files
committed
call prepareAnnotation later
1 parent 283d609 commit 9f18a89

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,16 +1725,16 @@ class ApiGateway {
17251725
slowQuery = slowQuery ||
17261726
Boolean(sqlQueries[index].slowQuery);
17271727

1728-
const annotation = prepareAnnotation(
1729-
metaConfigResult, normalizedQuery
1730-
);
1731-
17321728
const response = await this.getSqlResponseInternal(
17331729
context,
17341730
normalizedQuery,
17351731
sqlQueries[index],
17361732
);
17371733

1734+
const annotation = prepareAnnotation(
1735+
metaConfigResult, normalizedQuery
1736+
);
1737+
17381738
return this.getResultInternal(
17391739
context,
17401740
queryType,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function getCompactRow(
216216
}
217217

218218
/**
219-
* Convert DB response object to the vanila output format.
219+
* Convert DB response object to the vanilla output format.
220220
* @todo rewrite me please!
221221
* @internal
222222
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type DBResponseValue =
2222
{ value: DBResponsePrimitive };
2323

2424
/**
25-
* Transform cpecified `value` with specified `type` to the network
25+
* Transform specified `value` with specified `type` to the network
2626
* protocol type.
2727
*/
2828
function transformValue(

0 commit comments

Comments
 (0)