File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/cubejs-server-core/src/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export class OrchestratorApi {
8181 requestId : query . requestId
8282 } ) ;
8383
84- let fetchQueryPromise = query . loadRefreshKeysOnly
84+ let fetchQueryPromise : Promise < any > = query . loadRefreshKeysOnly
8585 ? this . orchestrator . loadRefreshKeys ( query )
8686 : this . orchestrator . fetchQuery ( query ) ;
8787
@@ -120,7 +120,7 @@ export class OrchestratorApi {
120120
121121 return data ;
122122 } catch ( err ) {
123- if ( ( err instanceof pt . TimeoutError || err instanceof ContinueWaitError ) ) {
123+ if ( err instanceof pt . TimeoutError || err instanceof ContinueWaitError ) {
124124 this . logger ( 'Continue wait' , {
125125 duration : ( ( new Date ( ) ) . getTime ( ) - startQueryTime ) ,
126126 query : queryForLog ,
@@ -131,6 +131,7 @@ export class OrchestratorApi {
131131 const fromCache = await this
132132 . orchestrator
133133 . resultFromCacheIfExists ( query ) ;
134+
134135 if (
135136 ! query . renewQuery &&
136137 fromCache &&
You can’t perform that action at this time.
0 commit comments