Skip to content

Commit b1f2f31

Browse files
committed
fix type
1 parent fd912a1 commit b1f2f31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cubejs-schema-compiler/src/adapter/PreAggregations.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,8 +1654,7 @@ export class PreAggregations {
16541654

16551655
private rollupMembers<T extends 'measures' | 'dimensions' | 'timeDimensions'>(preAggregationForQuery: PreAggregationForQuery, type: T): PreAggregationReferences[T] {
16561656
return preAggregationForQuery.preAggregation.type === 'autoRollup' ?
1657-
// TODO proper types
1658-
(preAggregationForQuery.preAggregation as any)[type] :
1657+
preAggregationForQuery.preAggregation[type] :
16591658
this.evaluateAllReferences(preAggregationForQuery.cube, preAggregationForQuery.preAggregation, preAggregationForQuery.preAggregationName)[type];
16601659
}
16611660

0 commit comments

Comments
 (0)