Skip to content

Commit 76453da

Browse files
committed
remove cache from subscribe
1 parent ee3132d commit 76453da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 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, cache
2110+
query, context, res, subscribe, subscriptionState, queryType, apiType
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: cache });
2123+
await this.load({ query, context, res, queryType, apiType });
21242124
return;
21252125
}
21262126

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

0 commit comments

Comments
 (0)