Skip to content

Commit

Permalink
rm unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalgupta94 committed Jul 6, 2024
1 parent be0d417 commit 1b617c9
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/worker/executors/select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ export class Select extends BaseFetch {
}
}
mergeResults();
// if (isArray(orInfo.orQuery)) {
return new Select({
where: orInfo.orQuery,
from: query.from,
Expand All @@ -301,26 +300,6 @@ export class Select extends BaseFetch {
mergeResults();
return this.orQueryFinish_();
});
// }
// else {
// query.where = orInfo.orQuery;
// return this.goToWhereLogic().then(_ => {
// mergeResults();
// return this.orQueryFinish_();
// })
// }


this.results = [];
const key = getObjectFirstKey(orInfo.orQuery);
if (key != null) {
const where = {};
where[key] = orInfo.orQuery[key];
delete orInfo.orQuery[key];
query.where = where;
return this.goToWhereLogic().then(this.onWhereEvaluated.bind(this))
}
return this.orQueryFinish_();
}

private processOrLogic_() {
Expand Down

0 comments on commit 1b617c9

Please sign in to comment.