Skip to content

Commit 7f3f0a8

Browse files
committed
fix(api-gateway): TypeError: res.json is not a function
1 parent 8549a79 commit 7f3f0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-api-gateway/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class ApiGateway {
296296
query = this.parseQueryParam(query);
297297
const normalizedQuery = await this.queryTransformer(normalizeQuery(query), context);
298298
const sqlQuery = await this.getCompilerApi(context).getSql(coerceForSqlQuery(normalizedQuery, context));
299-
res.json({
299+
res({
300300
sql: sqlQuery
301301
});
302302
} catch (e) {

0 commit comments

Comments
 (0)