File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
cubejs-schema-compiler/src/adapter
cubejs-server-core/src/core Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class PreAggregations {
156156 const tableName = this . preAggregationTableName ( cube , preAggregationName , preAggregation ) ;
157157 const invalidateKeyQueries = this . query . preAggregationInvalidateKeyQueries ( cube , preAggregation , preAggregationName ) ;
158158 const queryForSqlEvaluation = this . query . preAggregationQueryForSqlEvaluation ( cube , preAggregation ) ;
159- const partitionInvalidateKeyQueries = queryForSqlEvaluation . partitionInvalidateKeyQueries && queryForSqlEvaluation . partitionInvalidateKeyQueries ( cube , preAggregation ) ;
159+ const partitionInvalidateKeyQueries = queryForSqlEvaluation . partitionInvalidateKeyQueries ?. ( cube , preAggregation ) ;
160160
161161 const allBackAliasMembers = this . query . allBackAliasMembers ( ) ;
162162
Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ export const lookupDriverClass = (dbType): Constructor<BaseDriver> & {
4949 */
5050export const isDriver = ( val : any ) : boolean => {
5151 let isDriverInstance = val instanceof BaseDriver ;
52- if ( ! isDriverInstance && val && val . constructor ) {
52+ if ( ! isDriverInstance && val ? .constructor ) {
5353 let end = false ;
5454 let obj = val . constructor ;
5555 while ( ! isDriverInstance && ! end ) {
5656 obj = Object . getPrototypeOf ( obj ) ;
5757 end = ! obj ;
58- isDriverInstance = obj && obj . name ? obj . name === 'BaseDriver' : false ;
58+ isDriverInstance = obj ? .name ? obj . name === 'BaseDriver' : false ;
5959 }
6060 }
6161 return isDriverInstance ;
@@ -82,11 +82,11 @@ export const getDriverMaxPool = async (
8282 const queryQueueOptions = await options
8383 . queryCacheOptions
8484 . queueOptions ( context . dataSource ) ;
85-
85+
8686 const preAggregationsQueueOptions = await options
8787 . preAggregationsOptions
8888 . queueOptions ( context . dataSource ) ;
89-
89+
9090 return 2 * (
9191 queryQueueOptions . concurrency +
9292 preAggregationsQueueOptions . concurrency
You can’t perform that action at this time.
0 commit comments