Skip to content

Commit a05afcf

Browse files
committed
more types and polish
1 parent ee4434f commit a05afcf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cubejs-server-core/src/core/OrchestratorApi.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 &&

0 commit comments

Comments
 (0)