Skip to content

Commit ee3132d

Browse files
committed
fix subscribe()
1 parent 5ebef32 commit ee3132d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ class ApiGateway {
21072107
}
21082108

21092109
public async subscribe({
2110-
query, context, res, subscribe, subscriptionState, queryType, apiType, cacheMode
2110+
query, context, res, subscribe, subscriptionState, queryType, apiType, cache
21112111
}) {
21122112
const requestStarted = new Date();
21132113
try {
@@ -2120,7 +2120,7 @@ class ApiGateway {
21202120
let error: any = null;
21212121

21222122
if (!subscribe) {
2123-
await this.load({ query, context, res, queryType, apiType, cacheMode });
2123+
await this.load({ query, context, res, queryType, apiType, cacheMode: cache });
21242124
return;
21252125
}
21262126

@@ -2137,7 +2137,7 @@ class ApiGateway {
21372137
},
21382138
queryType,
21392139
apiType,
2140-
cacheMode,
2140+
cacheMode: cache,
21412141
});
21422142
const state = await subscriptionState();
21432143
if (result && (!state || JSON.stringify(state.result) !== JSON.stringify(result))) {

0 commit comments

Comments
 (0)