File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/cubejs-query-orchestrator/src/orchestrator Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 99 InlineTables ,
1010 CacheDriverInterface ,
1111 TableStructure ,
12- DriverInterface , QueryKey ,
12+ DriverInterface ,
1313} from '@cubejs-backend/base-driver' ;
1414
1515import { QueryQueue } from './QueryQueue' ;
@@ -208,9 +208,7 @@ export class QueryCache {
208208 . cacheKeyQueriesFrom ( queryBody )
209209 . map ( replacePreAggregationTableNames ) ;
210210
211- const renewalThreshold =
212- queryBody . cacheKeyQueries &&
213- queryBody . cacheKeyQueries . renewalThreshold ;
211+ const renewalThreshold = queryBody . cacheKeyQueries ?. renewalThreshold ;
214212
215213 const expireSecs = this . getExpireSecs ( queryBody ) ;
216214
@@ -350,7 +348,7 @@ export class QueryCache {
350348 }
351349
352350 private cacheKeyQueriesFrom ( queryBody : QueryBody ) : QueryWithParams [ ] {
353- return queryBody . cacheKeyQueries && queryBody . cacheKeyQueries . queries ||
351+ return queryBody . cacheKeyQueries ? .queries ||
354352 queryBody . cacheKeyQueries ||
355353 [ ] ;
356354 }
You can’t perform that action at this time.
0 commit comments