Skip to content

Commit 0acee1e

Browse files
committed
fix context passing
1 parent e0639b0 commit 0acee1e

File tree

1 file changed

+4
-4
lines changed
  • packages/cubejs-server-core/src/core

1 file changed

+4
-4
lines changed

packages/cubejs-server-core/src/core/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -735,11 +735,11 @@ export class CubejsServerCore {
735735
const contexts = [];
736736

737737
for (const allContext of allContexts) {
738-
const res = await this.contextAcceptor.shouldAccept(
739-
this.migrateBackgroundContext(allContext)
740-
);
738+
const resContext = this.migrateBackgroundContext(allContext);
739+
const res = await this.contextAcceptor.shouldAccept(resContext);
740+
741741
if (res.accepted) {
742-
contexts.push(allContext);
742+
contexts.push(resContext || {});
743743
}
744744
}
745745

0 commit comments

Comments
 (0)