We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0639b0 commit 0acee1eCopy full SHA for 0acee1e
packages/cubejs-server-core/src/core/server.ts
@@ -735,11 +735,11 @@ export class CubejsServerCore {
735
const contexts = [];
736
737
for (const allContext of allContexts) {
738
- const res = await this.contextAcceptor.shouldAccept(
739
- this.migrateBackgroundContext(allContext)
740
- );
+ const resContext = this.migrateBackgroundContext(allContext);
+ const res = await this.contextAcceptor.shouldAccept(resContext);
+
741
if (res.accepted) {
742
- contexts.push(allContext);
+ contexts.push(resContext || {});
743
}
744
745
0 commit comments