Skip to content

Commit bb90465

Browse files
committed
call prepareAnnotation later
1 parent 2902001 commit bb90465

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
@@ -1715,16 +1715,16 @@ class ApiGateway {
17151715
slowQuery = slowQuery ||
17161716
Boolean(sqlQueries[index].slowQuery);
17171717

1718-
const annotation = prepareAnnotation(
1719-
metaConfigResult, normalizedQuery
1720-
);
1721-
17221718
const response = await this.getSqlResponseInternal(
17231719
context,
17241720
normalizedQuery,
17251721
sqlQueries[index],
17261722
);
17271723

1724+
const annotation = prepareAnnotation(
1725+
metaConfigResult, normalizedQuery
1726+
);
1727+
17281728
return this.getResultInternal(
17291729
context,
17301730
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)