Skip to content

Commit 9ce7e9f

Browse files
committed
use direct assignment
1 parent 8165a2f commit 9ce7e9f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,10 +2169,7 @@ class ApiGateway {
21692169
}
21702170

21712171
public async contextByReq(req: Request, securityContext, requestId: string): Promise<ExtendedRequestContext> {
2172-
req.securityContext = {
2173-
...req.securityContext,
2174-
...securityContext,
2175-
};
2172+
req.securityContext = securityContext;
21762173

21772174
const extensions = typeof this.extendContext === 'function' ? await this.extendContext(req) : {};
21782175

0 commit comments

Comments
 (0)