File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/cubejs-api-gateway/src Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1185,7 +1185,6 @@ class ApiGateway {
11851185 const compilerApi = await this . getCompilerApi ( context ) ;
11861186
11871187 const queryNormalizationResult : Array < {
1188- query : Query ,
11891188 normalizedQuery : NormalizedQuery ,
11901189 hasExpressionsInQuery : boolean
11911190 } > = queries . map ( ( currentQuery ) => {
@@ -1200,22 +1199,20 @@ class ApiGateway {
12001199 }
12011200
12021201 return {
1203- query : currentQuery ,
12041202 normalizedQuery : ( normalizeQuery ( currentQuery , persistent ) ) ,
12051203 hasExpressionsInQuery
12061204 } ;
12071205 } ) ;
12081206
12091207 let normalizedQueries : NormalizedQuery [ ] = await Promise . all (
12101208 queryNormalizationResult . map (
1211- async ( { query : currentQuery , normalizedQuery, hasExpressionsInQuery } ) => {
1212- let evaluatedQuery = currentQuery ;
1209+ async ( { normalizedQuery, hasExpressionsInQuery } ) => {
1210+ let evaluatedQuery : Query | NormalizedQuery = normalizedQuery ;
12131211
12141212 if ( hasExpressionsInQuery ) {
12151213 // We need to parse/eval all member expressions early as applyRowLevelSecurity
12161214 // needs to access the full SQL query in order to evaluate rules
1217- evaluatedQuery =
1218- this . evalMemberExpressionsInQuery ( normalizedQuery ) ;
1215+ evaluatedQuery = this . evalMemberExpressionsInQuery ( normalizedQuery ) ;
12191216 }
12201217
12211218 // First apply cube/view level security policies
You can’t perform that action at this time.
0 commit comments