Skip to content

Commit 2ba752d

Browse files
committed
chore: test
1 parent da645ad commit 2ba752d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,10 @@ export class SQLServer {
108108
this.sqlInterfaceInstance = await registerInterface({
109109
gatewayPort: this.gatewayPort,
110110
pgPort: options.pgSqlPort,
111-
contextToApiScopes: async ({ securityContext }) => {
112-
return this.apiGateway.contextToApiScopesFn(
113-
securityContext,
114-
getEnv('defaultApiScope') || await this.apiGateway.contextToApiScopesDefFn()
115-
);
116-
},
111+
contextToApiScopes: async ({ securityContext }) => this.apiGateway.contextToApiScopesFn(
112+
securityContext,
113+
getEnv('defaultApiScope') || await this.apiGateway.contextToApiScopesDefFn()
114+
),
117115
checkAuth: async ({ request, token }) => {
118116
const { securityContext } = await this.apiGateway.checkAuthFn(request, token);
119117

packages/cubejs-api-gateway/test/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import express, { Application as ExpressApplication, RequestHandler } from 'expr
33
// eslint-disable-next-line import/no-extraneous-dependencies
44
import request from 'supertest';
55
import jwt from 'jsonwebtoken';
6-
import {getEnv, pausePromise} from '@cubejs-backend/shared';
6+
import { getEnv, pausePromise } from '@cubejs-backend/shared';
77

88
import { ApiGateway, ApiGatewayOptions, CubejsHandlerError, Request } from '../src';
99
import { AdapterApiMock, DataSourceStorageMock } from './mocks';

0 commit comments

Comments
 (0)