File tree 1 file changed +5
-7
lines changed
src/modules/components/common_components
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1216,19 +1216,17 @@ export class Common {
1216
1216
} ;
1217
1217
let whereValuesCounter : number = 0 ;
1218
1218
let whereValues = new Array < string > ( ) ;
1219
+
1219
1220
let parsedWhere : Query ;
1220
1221
if ( whereClause ) {
1221
- parsedWhere = whereClause && parseQuery ( 'SELECT Id FROM Account WHERE (' + whereClause + ')' ) ;
1222
- //parsedWhere.where.left.openParen = 1;
1223
- //parsedWhere.where.left.closeParen = 1;
1222
+ parsedWhere = parseQuery ( 'SELECT Id FROM Account WHERE (' + whereClause + ')' ) ;
1224
1223
}
1225
1224
1226
1225
let parsedOrderBy : Query ;
1227
- if ( orderByClause ) {
1228
- parsedOrderBy = orderByClause && parseQuery ( 'SELECT Id FROM Account ORDER BY ' + orderByClause + '' )
1226
+ if ( orderByClause ) {
1227
+ parsedOrderBy = parseQuery ( 'SELECT Id FROM Account ORDER BY ' + orderByClause + '' )
1229
1228
}
1230
1229
1231
-
1232
1230
function * queryGen ( ) {
1233
1231
while ( true ) {
1234
1232
for ( let whereClausLength = whereClauseLength ; whereClausLength < CONSTANTS . MAX_SOQL_WHERE_CLAUSE_CHARACTER_LENGTH ; ) {
@@ -1255,7 +1253,7 @@ export class Common {
1255
1253
tempQuery . where . operator = "AND" ;
1256
1254
}
1257
1255
1258
- if ( parsedOrderBy ) {
1256
+ if ( parsedOrderBy ) {
1259
1257
tempQuery . orderBy = parsedOrderBy . orderBy
1260
1258
}
1261
1259
You can’t perform that action at this time.
0 commit comments