Skip to content

Commit d804630

Browse files
committed
code polish
1 parent 1c667fe commit d804630

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/PreAggregationLoadCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ export class PreAggregationLoadCache {
194194
if (!this.queryResults[this.queryCache.queryRedisKey([query, values])]) {
195195
this.queryResults[this.queryCache.queryRedisKey([query, values])] = await this.queryCache.cacheQueryResult(
196196
query,
197-
<string[]>values,
198-
[query, <string[]>values],
197+
values,
198+
[query, values],
199199
60 * 60,
200200
{
201201
renewalThreshold: this.queryCache.options.refreshKeyRenewalThreshold

packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,14 @@ export class QueryCache {
865865
});
866866
}).catch(e => {
867867
if (!(e instanceof ContinueWaitError)) {
868-
this.logger('Dropping Cache', { cacheKey, error: e.stack || e, requestId: options.requestId, spanId, primaryQuery, renewCycle });
868+
this.logger('Dropping Cache', {
869+
cacheKey,
870+
error: e.stack || e,
871+
requestId: options.requestId,
872+
spanId,
873+
primaryQuery,
874+
renewCycle
875+
});
869876
this.cacheDriver.remove(redisKey)
870877
.catch(err => this.logger('Error removing key', {
871878
cacheKey,

0 commit comments

Comments
 (0)